how to make a command to add any vehicle?
#7

pawn Код:
CMD:car(playerid, params[])
    {
        new string[128];
        new object;
        string = strtok(params, idx);
        if(!strlen(string))
        {
             SendClientMessage(playerid, COLOR_WHITE, "USAGE: /car [carid]");
             return 1;
        }
        object = strval(string);
        new Float:playerx, Float:playery, Float:playerz;
        GetPlayerPos(playerid, playerx, playery, playerz);
        CreateVehicle(object, playerx, playery, playerz, 0, 0, 0, 60000);
        return 1;
    }
How do I convert it to zcmd? Getting undefined symbol "idx"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)