ZCMD Questions.
#2

Heres alittle info friend, in your sscanf line, you have i, i stands for integer, Anyways

To make it smaller


pawn Код:
CMD:materijal(playerid, params[])
{
    new carid=GetPlayerVehicleID(playerid);
    new s;
    if(sscanf(params,"i",s)) return SendClientMessage(playerid, COLOR_GRAD2, "UPOTREBA: /materijal [1 ili 2]");
    if(!(IsAPrevoznikCar(carid))) return SendClientMessage(playerid, COLOR_GRAD3, "You are not in right vehicle!");
    else if(s>2) return SendClientMessage(playerid, COLOR_GRAD2, "Not valid choice!");
    if(s==1){
    SetPlayerCheckpoint(playerid, -1060.0957,-593.9825,31.8627,5.0);//cp
    CP[playerid] = 20;
    }else if(s==2){
    SetPlayerCheckpoint(playerid, -1060.0957,-593.9825,31.8627,5.0);//cp
    CP[playerid] = 25;
    }
    return 1;
}
Reply


Messages In This Thread
ZCMD Questions. - by bake_pg - 28.03.2011, 17:48
Re: ZCMD Questions. - by -Rebel Son- - 28.03.2011, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)