25.12.2010, 15:53
fico so um erro fico so esse agora nesta linha agora
SendClientMessageToAll(0xAAAAAAAA, string);
C:\Documents and Settings\Igor\Desktop\Sever 0.3b\gamemodes\BRASIL MATA MATA UNDERGROUND.pwn(22 : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\Igor\Desktop\Sever 0.3b\gamemodes\BRASIL MATA MATA UNDERGROUND.pwn(22 : warning 215: expression has no effect
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);
}
SendClientMessageToAll(0xAAAAAAAA, string);
C:\Documents and Settings\Igor\Desktop\Sever 0.3b\gamemodes\BRASIL MATA MATA UNDERGROUND.pwn(22 : error 002: only a single statement (or expression) can follow each "case"
C:\Documents and Settings\Igor\Desktop\Sever 0.3b\gamemodes\BRASIL MATA MATA UNDERGROUND.pwn(22 : warning 215: expression has no effect
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);
}