Invaild Vehicle ID sscanf
#2

pawn Код:
YCMD:delcar(playerid, params[], help)
{
        if(P_Data[playerid][pAdmin] < 2) return SCM(playerid, COLOR_RED, "You aren't admin!");
        new
            vehicleid,string[128];
        if(sscanf(params, "i", vehicleid)) return SCM(playerid, COLOR_RED, "Usage: /delcar [vehicleid[");
        if(vehicleid == INVALID_VEHICLE_ID) return SCM(playerid, COLOR_RED, "Wrong vehicleid");
        format(string, sizeof(string), "You deleted vehicle id: %i", vehicleid);
        SCM(playerid, -1,string);
        DestroyVehicle(vehicleid);
        return 1;
}
Dude, it's INVALID not INVAILD
Reply


Messages In This Thread
Invaild Vehicle ID sscanf - by mrsamp - 30.07.2012, 19:43
Re: Invaild Vehicle ID sscanf - by SomebodyAndMe - 30.07.2012, 19:44
Re: Invaild Vehicle ID sscanf - by mrsamp - 30.07.2012, 19:47
Re: Invaild Vehicle ID sscanf - by SomebodyAndMe - 30.07.2012, 19:48
Re: Invaild Vehicle ID sscanf - by mrsamp - 30.07.2012, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)