їerror de comando?
#5

pawn Код:
if(strcmp(cmd, "/tpc", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        new tmp1[128],tmp2[128],tmp3[128];
        tmp1 = strtok(cmdtext, idx);
        tmp2 = strtok(cmdtext, idx);
        tmp3 = strtok(cmdtext, idx);
        if(!strlen(tmp1) || !strlen(tmp2) || !strlen(tmp3)) return SendClientMessage(playerid, -1, "Usa: /tpc <X> <Y> <Z>");

        SetPlayerPos(playerid, floatstr(tmp1), floatstr(tmp2), floatstr(tmp3));
        SendClientMessage(playerid, -1, "Teletransportado.");
    }
    return 1;
}
Reply


Messages In This Thread
їerror de comando? - by Glimma - 25.08.2012, 20:50
Respuesta: їerror de comando? - by Fluid016 - 25.08.2012, 21:34
Respuesta: їerror de comando? - by OTACON - 25.08.2012, 21:36
Re: їerror de comando? - by Glimma - 25.08.2012, 21:54
Re: їerror de comando? - by Daniel-92 - 25.08.2012, 23:19
Re: їerror de comando? - by Glimma - 26.08.2012, 00:30
Respuesta: їerror de comando? - by Jose_grana - 26.08.2012, 00:56
Respuesta: Re: їerror de comando? - by Daniel-92 - 26.08.2012, 01:30
Respuesta: Re: їerror de comando? - by OTACON - 26.08.2012, 18:52

Forum Jump:


Users browsing this thread: 2 Guest(s)