11.04.2017, 19:54
Eu utilizava a versгo anterior, que й muito boa por sinal. Fui testar a atual e deram os seguintes erros:
Linha:
Cуdigo completo:
pawn Код:
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : error 012: invalid function call, not a valid address
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : warning 215: expression has no effect
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : error 001: expected token: ";", but found ")"
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : error 029: invalid expression, assumed zero
C:\Users\Felipe\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Race.pwn(4215) : fatal error 107: too many error messages on one line
pawn Код:
else format(AdminNick, MAX_PLAYER_NAME, Player(admin));
pawn Код:
VBan(playerid, admin, Motivo[])
{
if(IsPlayerConnected(playerid))
{
new AdminNick[MAX_PLAYER_NAME];
if(admin == -1) format(AdminNick, MAX_PLAYER_NAME, "VBot");
else format(AdminNick, MAX_PLAYER_NAME, Player(admin));
format(VBString,128,"'- VBan -' O jogador %s foi banido por %s. Motivo: %s",Player(playerid),AdminNick,Motivo);
SendClientMessageToAll(CorBan,VBString);
format(VBString, 35, "/Bans/%s.ini", Player(playerid));
VBanSaveInfo(VBString, Player(playerid), AdminNick, PlayerIP(playerid), getdate()-1, Motivo);
format(VBString, 35, "/Bans/%s.ini", PlayerIP(playerid));
VBanSaveInfo(VBString, Player(playerid), AdminNick, PlayerIP(playerid), getdate()-1, Motivo);
VBanLoadInfo(playerid,VBString);
SetTimerEx("VBKick",300, false, "i", playerid);
}
else SendClientMessage(admin, CorErro, "Jogador nгo conectado.");
return true;
}