[Ajuda] o QUE TEM ERRADO?
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/desbug", true) == 0)
    {
        new Float:x, Float:y, Float:z;
        GetPlayerPos(playerid, x, y, z);
        RemovePlayerFromVehicle(playerid);
        SetPlayerPos(playerid, x, y,z+3);
        TogglePlayerControllable(playerid,1);
        return 1;
    }
    return SendClientMessage(playerid, Vermelho,"[ERRO] Comando Inexistente!");
}
Se quiser usar cmd tem que usar assim:
pawn Код:
new cmd[156], idx;
cmd = strtok(cmdtext, idx);
E a stock strtok tambйm!
Reply


Messages In This Thread
o QUE TEM ERRADO? - by Kasura - 25.07.2012, 10:49
Re: o QUE TEM ERRADO? - by humildadeforever - 25.07.2012, 11:00
Re: o QUE TEM ERRADO? - by Kasura - 25.07.2012, 11:52

Forum Jump:


Users browsing this thread: 1 Guest(s)