Pawno Error. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Pawno Error. (
/showthread.php?tid=247687)
Pawno Error. -
maggot_100 - 10.04.2011
Can somebody help me i cant Fix this problem.. :/
ERROR
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(977) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(994) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(1005) : warning 225: unreachable code
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(1005 -- 1007) : error 029: invalid expression, assumed zero
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(1007) : warning 215: expression has no effect
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(1007) : error 017: undefined symbol "classid"
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(1007) : error 029: invalid expression, assumed zero
C:\Documents and Settings\a\Desktop\samp03asvr_R8_win32\gamemodes\e litedrift.pwn(1007) : fatal error 107: too many error messages on one line
CODE:
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s Left. (Lost Connection)", pname);
case 1: format(string, sizeof(string), "%s Left. (Leaving)", pname);
case 2: format(string, sizeof(string), "%s Left. (Kicked)", pname);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
(
public OnPlayerRequestClass(playerid, classid)
{
Re: Pawno Error. -
xir - 10.04.2011
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], string[39 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s Left. (Lost Connection)", pname);
case 1: format(string, sizeof(string), "%s Left. (Leaving)", pname);
case 2: format(string, sizeof(string), "%s Left. (Kicked)", pname);
}
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}