[Ajuda] Comandos :D
#8

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.
Reply


Messages In This Thread
Comandos :D - by Lucas-Fc - 15.11.2012, 13:39
Re: Comandos :D - by .FuneraL. - 15.11.2012, 13:52
Re: Comandos :D - by Lucas-Fc - 15.11.2012, 13:57
Re: Comandos :D - by Q.I - 15.11.2012, 14:09
Re: Comandos :D - by Lucas-Fc - 15.11.2012, 14:14
Re: Comandos :D - by @FatalFormat - 15.11.2012, 14:19
Re: Comandos :D - by Lucas-Fc - 15.11.2012, 14:23
Re: Comandos :D - by humildadeforever - 15.11.2012, 14:39

Forum Jump:


Users browsing this thread: 1 Guest(s)