Quote:
Originally Posted by .FuneraL.
pawn Код:
CMD:suspeito(playerid, params[]) { new ID, Crime[10]; if(sscanf(params, "ds[10]", ID, Crime)) return SendClientMessage(playerid, -1, "ERRO: /suspeito [ID] [Crime]"); if(!strcmp(params, "th", true)) { SetPlayerWantedLevel(ID, GetPlayerWantedLevel(ID) +3); // Resto do codigo } else if(!strcmp(params, "fuga", true)) { SetPlayerWantedLevel(ID, GetPlayerWantedLevel(ID) +2); // Resto do codigo } return 1; }
Acho que seria algo assim , Se estiver errado, me corrijam
|
Tб errado. No strcmp seria Crime, nгo params.