Wysłany: 2009-04-30, 13:27
adrian_pl_20
Wiek: 31 Na forum: 6780 dni Posty: 155
Nick w MP: adrian_w
Piwa : 1568
po ostatniej komendzie daj Kod:
i to Kod: daj na samej g?rze mapy lub skryptu
Pod includami
Wysłany: 2009-04-30, 14:00
sebek95
<[P|A|W|N]>
Wiek: 37 Na forum: 6725 dni Posty: 18
Piwa : 8
Je?li uwa?asz mnie, za osobe nie wiedz?c?, ?e na ko?cu jest potrzebny
Kod: To jeste? w b??dzie.... a co do new'a to nie zauwa?y?em po prostu, ?e go tu wciubi?em
Piff
Wysłany: 2009-04-30, 14:05
adrian_pl_20
Wiek: 31 Na forum: 6780 dni Posty: 155
Nick w MP: adrian_w
Piwa : 1568
sebek95 , ale mo?e na ko?cu komendy odrazu da?e? Kod:
Przy ostatniej komendzie jak masz Kod:
to pod nim dodaj to Kod:
Wysłany: 2009-05-04, 17:54
ZiPeKs
new zipekS;
Wiek: 36 Na forum: 6530 dni Posty: 43
Piwa : 469
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : error 017: undefined symbol "CanPing"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : warning 215: expression has no effect
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Pawn
public OnPlayerSpawn ( playerid )
{
if(! CanPing [ playerid ][ 0 ])
{
CanPing [ playerid ][ 1 ] = true ;
}
TextDrawShowForPlayer ( playerid , Dane [ playerid ]);
SendClientMessage ( playerid , COLOR_GREEN , "***Mi?ej Gry Na TuningS CarS MaP***" );
SetPlayerInterior ( playerid , 0 );
SetPlayerHealth ( playerid , 100 );
SetPlayerArmour ( playerid , 100 );
return 1 ;
}
Wysłany: 2009-05-04, 19:37
adrian_pl_20
Wiek: 31 Na forum: 6780 dni Posty: 155
Nick w MP: adrian_w
Piwa : 1568
na g?rze mapy
Kod:
Wysłany: 2009-05-05, 16:36
ZiPeKs
new zipekS;
Wiek: 36 Na forum: 6530 dni Posty: 43
Piwa : 469
to nic nie pomaga
Wysłany: 2009-05-05, 16:38
AdiX
Wiek: 31 Na forum: 6898 dni Posty: 100
Piwa : 932
Chyba widzicie
Kod:
Wi?c powinno by?
Kod: new CanPing[MAX_PLAYERS][200];
a nie
Kod: new CanPing[MAX_PLAYERS];
Wysłany: 2009-05-05, 16:51
ZiPeKs
new zipekS;
Wiek: 36 Na forum: 6530 dni Posty: 43
Piwa : 469
Pawn C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 699 ) : error 017 : undefined symbol "protectadmin"
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 711 ) : error 017 : undefined symbol "maxping"
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 716 ) : error 017 : undefined symbol "string"
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 716 ) : error 017 : undefined symbol "string"
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 716 ) : error 029 : invalid expression , assumed zero
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 716 ) : fatal error 107 : too many error messages on one line
linijki:
Kod:
if(IsPlayerConnected(i) && IsPlayerAdmin(i) == protectadmin)
//-
if(GetPlayerPing(i) >= maxping)
//-
format(string, sizeof(string), "SERWER: %s (ID: %d) zosta? wyrzucony z Servera. Pow?d: Wysoki Ping | max: 500", Name, i);
edit@
doda?em stringa:
Pawn C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 196 ) : warning 219 : local variable "string" shadows a variable at a preceding level
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 223 ) : warning 219 : local variable "string" shadows a variable at a preceding level
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 700 ) : error 017 : undefined symbol "protectadmin"
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 712 ) : error 017 : undefined symbol "maxping"
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 757 ) : warning 219 : local variable "string" shadows a variable at a preceding level
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 1046 ) : warning 219 : local variable "string" shadows a variable at a preceding level
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 1071 ) : warning 219 : local variable "string" shadows a variable at a preceding level
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 1191 ) : warning 219 : local variable "string" shadows a variable at a preceding level
C : \Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_ . pwn ( 1263 ) : warning 219 : local variable "string" shadows a variable at a preceding level
Wysłany: 2009-05-05, 17:02
Law
Wiek: 31 Na forum: 6581 dni Posty: 39
Piwa : 1318
Tak zdefiniowa?e? string?
Wysłany: 2009-05-05, 17:08
ZiPeKs
new zipekS;
Wiek: 36 Na forum: 6530 dni Posty: 43
Piwa : 469
tak .
Usun??em wszystkie warningi chcia?em napisa? ale si? nie zmie?ci?o
edit:
musisz to dawa? w [code2] ?
edit2:
powie kto? ocb
Wysłany: 2009-05-07, 22:58
Amaru_Smith
Wiek: 33 Na forum: 6542 dni Posty: 3
Piwa : 78
A wi?c nie dzia?aj? mi czaty takie jak: /o normalny czat przy klikni?ciu T /f /do /r
Czaty kt?re dzia?aj?: /b /s /k /l
Czat /b dzia?aj?cy:
Kod: if(strcmp(cmd, "/b", true) == 0)//local ooc
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nie jeste? zalogowany !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "U?yj: /b [tekst]");
return 1;
}
format(string, sizeof(string), "%s m?wi: (( %s ))", sendername, result);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}
Czat /o nie dzia?aj?cy:
Kod: if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nie jestes jeszzce zalogowany !");
return 1;
}
if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Chat (ooc) zostal wylaczony na jakis czas przez admina !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Nie mozesz mowic, zostales wyciszony !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "UZYJ: (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( %s (czat ooc): %s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
return 1;
}
Co? si? skopci?o i nie wyskakuj? nic ?e kto? pisze na serwie.
Prosz? o szybk? pomoc!
Za pomoc daje 2 piwka z lod?wki
Wysłany: 2009-05-08, 11:30
Amaru_Smith
Wiek: 33 Na forum: 6542 dni Posty: 3
Piwa : 78
w public OnPlayerCommandText ;/
Wysłany: 2009-05-12, 17:30
Grigor_Ivanov
Wiek: 35 Na forum: 6419 dni Posty: 9
Nick w MP: Wolf
Kod: C:\Documents and Settings\Michal\Desktop\gf.pwn(1834) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1859) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1879) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1884) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1948) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1952) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1964) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1968) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1972) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1976) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1980) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1984) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1988) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2000) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2004) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2008) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2012) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2016) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2028) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2032) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2036) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2048) : error 004: function "PlayerToPoint" is not implemented
Okolice linijki 2048
Kod: return 0;
}
public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
{//Cluckin Bell
return 1;
}
else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershotd))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
}//In grove street bar (with girlfriend), and in Havanna
return 1;
}
{
else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734))
}
return 0;
}
}
return 0;
}
Wysłany: 2009-05-12, 17:37
adrian_pl_20
Wiek: 31 Na forum: 6780 dni Posty: 155
Nick w MP: adrian_w
Piwa : 1568
?le wszystko zrobi?es wychodzi na to ze
Jak gracz jest pod??czony i jest w jakims miejscu albo jakims to nic sie niedzieje i jest w jakims miejscu i jest w jakims miejscu ....
Bez sensu
Wysłany: 2009-05-13, 20:05
eXtreme
Wiek: 35 Na forum: 6331 dni Posty: 1
Witaj
[you]
!
Wsp?lnie z kumplem piszemy GameModa...
przy wstawianiu Menu Ammonation wyst?pi?y nast?puj?ce b??dy:
Po b??dach mo?na wywnioskowa?, ?e brakuje znaku ";"
Nie wiem jednak,gdzie go umie?ci?...
Oto kilka Cord?w, ko?o kt?rych wyst?puje error:
Kod:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if (CurrentMenu == AmmunationMenu)
{
switch(row)
{
case 0: //9mm.
{
GPWD(playerid, 2, Player[playerid][DataWeapon], Player[playerid][DataAmmo]); SkipHackCheck[playerid] = 1;
if (GetPlayerMoney(playerid) <= 499)
{
(Cord,gdzie wyst?puj? wszystkie b??dy) NoCash; SendCMP; GameTFP; Deny; TPC(playerid, 0); SMFP(AmmunationMenu, playerid);
return 1;
}
if (Player[playerid][DataAmmo] >= MAX_AMMO_PISTOL && Player[playerid][DataWeapon] == 22)
{
Limit; SendCMP; GameTFP; SPA(playerid , 2, MAX_AMMO_PISTOL); Deny; TPC(playerid, 1); HMFP(AmmunationMenu, playerid);
return 1;
}
MenuPPS; GPW(playerid, 22, 50); GPM(playerid, -500); TPC(playerid, 0); SMFP(AmmunationMenu, playerid); DudbPlayerMoney("Money") -500);
return 1;
}
A oto skr?cony do 2 pozycji Kod Menu:
Kod:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if (CurrentMenu == AmmunationMenu)
{
switch(row)
{
case 0: //9mm.
{
GPWD(playerid, 2, Player[playerid][DataWeapon], Player[playerid][DataAmmo]); SkipHackCheck[playerid] = 1;
if (GetPlayerMoney(playerid) <= 499)
{
NoCash; SendCMP; GameTFP; Deny; TPC(playerid, 0); SMFP(AmmunationMenu, playerid);
return 1;
}
if (Player[playerid][DataAmmo] >= MAX_AMMO_PISTOL && Player[playerid][DataWeapon] == 22)
{
Limit; SendCMP; GameTFP; SPA(playerid , 2, MAX_AMMO_PISTOL); Deny; TPC(playerid, 1); HMFP(AmmunationMenu, playerid);
return 1;
}
MenuPPS; GPW(playerid, 22, 50); GPM(playerid, -500); TPC(playerid, 0); SMFP(AmmunationMenu, playerid); DudbPlayerMoney("Money") -500);
return 1;
}
case 6: //ARMOR.
{
SkipHackCheck[playerid] = 1;
if (GetPlayerMoney(playerid) <= 999)
{
NoCash; SendCMP; GameTFP; Deny; TPC(playerid, 0); SMFP(AmmunationMenu, playerid);
return 1;
}
if (GetPlayerArmour(playerid, HP) >= 99.0)
{
FullAM; SendCMP; GameTFP; Deny; TPC(playerid, 1); HMFP(AmmunationMenu, playerid);
return 1;
}
MenuPPS; SetAM(playerid, 99.0); GPM(playerid, -1000); TPC(playerid, 0); SMFP(AmmunationMenu, playerid); DudbPlayerMoney("Money") -1000);
return 1;
}
}
}
[you]
,bardzo prosz? Ci? o pomoc.
W zamian oczywi?cie
///edit
Cord z b??dem:
NoCash; SendCMP; GameTFP; Deny; TPC(playerid, 0);
Ostatnio zmieniony przez eXtreme 2009-05-13, 22:19, w całości zmieniany 1 raz
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: