Errors.
#3

pawn Code:
COMMAND:spawncar(playerid, params[])
{
    new vehicleid, color1, color2;
    if(!sscanf(params, "iii", vehicleid, color1, color2))
    {
       new vin;
       new Float:x, Float:y, Float:z;
       GetPlayerPos(playerid, x, y, z);
       vin=CreateVehicle(vehicleid, x, y, z, 0.0, color1, color2, -1);
       PutPlayerInVehicle(playerid, vin, 0);
    }else{
        SendClientMessage(playerid, COLOR_GREY, "ERROR: This command requires: /spawncar [vehicleid][color1][color2]");

    }
    return 1;
}
As I said, I think it's because of the dialog response & not the /spawncar.
Reply


Messages In This Thread
Errors. - by Darnell - 11.08.2011, 07:20
Re: Errors. - by shaikh007 - 11.08.2011, 08:08
Re: Errors. - by Darnell - 11.08.2011, 08:09
Re: Errors. - by Grim_ - 11.08.2011, 08:10
Re: Errors. - by Darnell - 11.08.2011, 08:12

Forum Jump:


Users browsing this thread: 2 Guest(s)