21.04.2009, 14:39
Hey all, I tried adding a D/C message to my script as my server doesnt have one. And I got this lovely error:
C:\Server\gfscript.pwn(3044) : error 017: undefined symbol "reason"
Info: Its a GF edit. Heres the D/C script I use:
C:\Server\gfscript.pwn(3044) : error 017: undefined symbol "reason"
Info: Its a GF edit. Heres the D/C script I use:
Код:
}
new pName[MAX_PLAYER_NAME], string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s has left the server. (Lost Connection)", pName);
case 1: format(string, sizeof(string), "%s has left the server. (Leaving)", pName);
case 2: format(string, sizeof(string), "%s has left the server. (Kicked)", pName);
}
}


works perfectly now