10.04.2011, 12:23
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)
{
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)
{