27.08.2012, 16:24
Ve quando coloco isso.
Comando:
Erros:
Linha (376):
Num sei porque da isso.
Comando:
pawn Код:
CMD:tapa(playerid, params[])
{
new name[MAX_PLAYER_NAME], ID, string[120];
if(PlayerInfo[playerid][pAdmin] => 1) return SendClientMessage(playerid, Cor_Erro, "ERRO: Vocк nгo й um admin para usar esse comando ou nгo tem level.");
if(sscanf(params, "u", ID)) return SendClientMessage(playerid, Cor_Amarelo, "[EG]: Comando Correto: /tapa [id]");
if(!IsPlayerConnected(ID)) return 1;
new Float:c[3];
GetPlayerPos(ID,c[0],c[1],c[2]);
SetPlayerPos(ID,c[0],c[1],c[2]+15);
GetPlayerName(ID, name, sizeof(name));
format(string, sizeof(string), "[EG]: O Adiministrador %s deu um tapa em %s.", pegarnome(playerid), pegarnome(ID));
SCMTA(Cor_Roxo, string);
return 1;
}
pawn Код:
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\EG.pwn(376) : warning 211: possibly unintended assignment
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\EG.pwn(376) : error 029: invalid expression, assumed zero
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\EG.pwn(376) : warning 215: expression has no effect
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\EG.pwn(376) : error 001: expected token: ";", but found ")"
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\EG.pwn(376) : error 029: invalid expression, assumed zero
C:\Users\Gabriel\Desktop\samp03esvr_win32\gamemodes\EG.pwn(376) : fatal error 107: too many error messages on one line
pawn Код:
if(PlayerInfo[playerid][pAdmin] => 1) return SendClientMessage(playerid, Cor_Erro, "ERRO: Vocк nгo й um admin para usar esse comando ou nгo tem level.");