erros
#8

pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
Object_OnPlayerDisconnect(playerid, reason);
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
switch(reason)
{
case 0: format(string, sizeof(string), "%s saiu do server, VOLTE SEMPRE! (perda de conexгo)", pName);
case 1: format(string, sizeof(string), "%s cansou de jogar e saiu, VOLTE SEMPRE! (saiu)", pName);
case 2: format(string, sizeof(string), "%s Foi contra as regras e saiu, FLW! (Kick/ban)", pName);
}
SendClientMessageToAll(0xAAAAAAAA, string);
}
ao post acima: nгo й isso, o meu OnPlayerDisconnect й parecido com o dele, sу muda as mensagens, e nгo da erro. Acontece que tava faltando uma '}'
Reply


Messages In This Thread
erros - by thaw_ps - 25.12.2010, 14:21
Re: erros - by [Ips]Guh - 25.12.2010, 15:09
Re: erros - by Macintosh - 25.12.2010, 15:10
Respuesta: erros - by thaw_ps - 25.12.2010, 15:35
Re: erros - by Gustavob - 25.12.2010, 15:44
Respuesta: erros - by thaw_ps - 25.12.2010, 15:53
Re: erros - by LeLeTe - 25.12.2010, 15:56
Re: erros - by Gustavob - 25.12.2010, 16:02
Respuesta: erros - by thaw_ps - 25.12.2010, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)