29.12.2010, 18:54
Hmm, error, I never understand the switch cases.
Lines,
pawn Код:
(870 -- 890) : error 010: invalid function or declaration
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: // crashed
{
// save stuff here and etc.
}
case 1: // disconnected
{
// stuff here
}
case 2: // kicked or banned
{
// stuff
}
}
}
return 1;
}