31.07.2016, 01:44
Galera eu estуu tentando criar um comando de dar procurado para um jogar mais estб dando apenбs 1 erro eu sуu novato em SA-MP entгo estуu pedindo ajuda para vocкs vou deixar o comando e o erro!!!
Comando abaixo.
Ajude-me e ganhe + 1 Rep
Erros = 1
Comando abaixo.
Ajude-me e ganhe + 1 Rep
Код:
if(strcmp(cmd, "/darprocurado", true == 0) { new aname[MAX_PLAYER_NAME]; if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5) { new tmp[256], plid; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, Vermelho, "Digite: /Darprocurado [id] [motivo]"); return 1; } plid = strval(tmp); new pname[MAX_PLAYER_NAME]; GetPlayerName(plid, pname, MAX_PLAYER_NAME); if(IsPlayerConnected(plid)) { dini_IntSet(file2, "procurado", 1); SetPlayerWantedLevel(playerid, 1); format(string, sizeof(string), "%s Deu 1 estrela de procurado para %s)", pname, aname); SendClientMessageToAll(LARANJA, string); } else { format(string, sizeof(string), "ID %d nгo й vбlido!", plid); SendClientMessage(playerid, Vermelho, string); } } return 1; }
Код:
C:\Users\Rans\Desktop\SDS\gamemodes\Dten03e.pwn(7626) : warning 217: loose indentation C:\Users\Rans\Desktop\SDS\gamemodes\Dten03e.pwn(7626) : warning 213: tag mismatch C:\Users\Rans\Desktop\SDS\gamemodes\Dten03e.pwn(7627) : error 001: expected token: ")", but found "{" C:\Users\Rans\Desktop\SDS\gamemodes\Dten03e.pwn(7658) : warning 217: loose indentation C:\Users\Rans\Desktop\SDS\gamemodes\Dten03e.pwn(16457) : warning 217: loose indentation C:\Users\Rans\Desktop\SDS\gamemodes\Dten03e.pwn(16528) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.