Tб tб .. '-'
Agora eu fiz um bang doido ai
pawn Код:
if(strcmp(cmd,"/darlevel", true)==0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(vAdmin[playerid] == 3 || vAdmin[playerid] == 4 || vAdmin[playerid] == 5 || vAdmin[playerid] == 6 || IsPlayerAdmin(playerid))
{
new plid, lvld;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Vermelho, "Digite: /darlevel [id] [level]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, Vermelho, "Digite: /darlevel [id] [level]");
return 1;
}
lvld = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
if(IsPlayerConnected(plid))
{
format(string, sizeof(string), "[AdmCmd] O Adminstrador %s (%d) te deu %d Level.", aname, playerid, lvld);
SendClientMessage(plid, newadm, string);
format(string, sizeof(string), "Vocк deu a %s(ID: %d) %d Level.", pname, plid, lvld);
SendClientMessage(playerid, newadm, string);
GetPlayerScore(plid, +lvld); // Linha 7703
}
else {
SendClientMessage(playerid, Vermelho,"(ERRO) Jogador nгo conectado.");
}
}
else {
SendClientMessage(playerid, Vermelho,"(ERRO) Vocк nгo pode usar este comando.");
}
return 1;
}
Код:
D:\Бrea de Trabalho\samp03dsvr_R2-800p_win32\gamemodes\xXx.pwn(7703) : error 029: invalid expression, assumed zero
D:\Бrea de Trabalho\samp03dsvr_R2-800p_win32\gamemodes\xXx.pwn(7703) : warning 215: expression has no effect
D:\Бrea de Trabalho\samp03dsvr_R2-800p_win32\gamemodes\xXxpwn(7703) : error 001: expected token: ";", but found ")"
D:\Бrea de Trabalho\samp03dsvr_R2-800p_win32\gamemodes\xXx.pwn(7703) : error 029: invalid expression, assumed zero
D:\Бrea de Trabalho\samp03dsvr_R2-800p_win32\gamemodes\xXx.pwn(7703) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.