09.09.2013, 03:11
pawn Код:
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\TRF_x_PM.pwn(1719) : error 017: undefined symbol "String"
pawn Код:
DOF2_SetInt(String, "Admin",PlayerInfo[playerid][pAdmin]);
pawn Код:
SalvarDados(playerid)
{
DOF2_SetInt(String, "Admin",PlayerInfo[playerid][pAdmin]);
DOF2_SaveFile();
return 1;
}
SetarPlayer(playerid)
{
PlayerInfo[playerid][pAdmin] = DOF2_GetInt(String, "Admin");
return 1;
}
pawn Код:
C:\Documents and Settings\Conviidado.AKINAS-E30DEFCE\Meus documentos\Minhas imagens\imprimir\TRF_x_PM.pwn(1731) : warning 203: symbol is never used: "SetarPlayer"
pawn Код:
SetarPlayer(playerid)
Merma coisa de cima.
Bom vo mostra a public OnPlayerDisconnect
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
new string[64],name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string,sizeof string,"** %s saiu do server (Crash/Conexгo)",name);
case 1: format(string,sizeof string,"** %s saiu do server (Conta Prуpria)",name);
case 2: format(string,sizeof string,"** %s saiu do server (Kickado/Banido)",name);
}
SendClientMessageToAll(0xFFFFFFAA,string);
PlayerInfo[playerid][pAdmin] = 0;
SalvarDados(playerid);
return 1;
}