10.11.2011, 20:41
Testa assim:
Linha do warning:
Code completo :
Linha do warning:
Code completo :
Linha do erro:
Code completo :
Linha do warning:
pawn Код:
new pname[MAX_PLAYER_NAME], string[46];//22+24
pawn Код:
SetTimerEx("timer", annoucment, false, "i", playerid);
GivePlayerMoney(playerid, spawnmoney);
new pname[MAX_PLAYER_NAME], string[46];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s entrou no server.", pname);
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
pawn Код:
new pname[MAX_PLAYER_NAME], string[63];//39+24
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new pname[MAX_PLAYER_NAME], string[63];
GetPlayerName(playerid, pname, sizeof(pname));
switch(reason)
{
case 0: format(string, sizeof(string), "%s Saiu do servidor por problemas com crash/coneзгo. ", pname);
case 1: format(string, sizeof(string), "%s Saiu do servidor. ", pname);
case 2: format(string, sizeof(string), "%s Foi Kikado ou Banido. ", pname);
}
SendClientMessageToAll(COLOR_RED, string);
return 1;
}
pawn Код:
if(!strcmp(cmd, "/afk", true) == 0)
pawn Код:
if(!strcmp(cmd, "/afk", true) == 0)
{
if(Afk[playerid]==0)
{
Afk[playerid]=1;
SetPlayerVirtualWorld(playerid, 1);
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,0);
TextDrawShowForPlayer(playerid,Ausente);
TextDrawShowForPlayer(playerid,On);
new Ausentes[200];
GetPlayerName(playerid, Ausentes, 30);
format(string, 256, "[BDF]%s Esta Ausente /afk", Ausentes);
SendClientMessageToAll( 0x00FFFFAA, string);
}else{
SendClientMessage(playerid,0xF60000AA,"(ERRO) Vocк jб estб no modo AFK!");
return 1;
}
return 1;
}