SSCANF
#2

Try this

pawn Код:
CMD:vspawn(playerid,params[])
{
    new
        Float:PosX,Float:PosY,Float:PosZ,Float:PosA,
        vehid,
        vehiclez
    ;
    if(sscanf(params,"i",vehid)) return SendClientMessage(playerid,COLOR_WHITE,"** Format ** /vspawn [vehid]");
    else if(vehid < 400 || vehid > 611) return SendClientMessage(playerid,COLOR_WHITE,"Vehicle ID's range from 400-611.");
    else
    {
        GetPlayerFacingAngle(playerid,PosA);
        GetPlayerPos(playerid,PosX,PosY,PosZ);
        vehiclez = CreateVehicle(vehid,x,y,z,a,-1,-1,5000);
        PutPlayerInVehicle(playerid,vehiclez,0);
    }
    return 1;
}
Reply


Messages In This Thread
SSCANF - by Azzeto - 09.12.2011, 16:40
Re: SSCANF - by T0pAz - 09.12.2011, 16:51
Re: SSCANF - by Azzeto - 09.12.2011, 16:55
Re: SSCANF - by T0pAz - 09.12.2011, 17:02
Re: SSCANF - by Azzeto - 09.12.2011, 17:03
Re: SSCANF - by Jakku - 09.12.2011, 17:06
Re: SSCANF - by Azzeto - 09.12.2011, 17:08
Re: SSCANF - by Jakku - 09.12.2011, 17:10
Re: SSCANF - by Azzeto - 09.12.2011, 17:11
Re: SSCANF - by Jakku - 09.12.2011, 17:15

Forum Jump:


Users browsing this thread: 2 Guest(s)