Vehicle putplayinvehicle
#1

When i spawn the vehicle it didnt not put me into the vehicle i get this warning


Код:
warning 202: number of arguments does not match definition
PHP код:
}
COMMAND:veh(playeridparams[])
{
    new 
iVehicleiColors[2], Float:Poz[4];
    if(
sscanf(params"iii"iVehicleiColors[0], iColors[1]))
        return 
SendClientMessage(playeridCOLOR_WHITE"USAGE: /veh [model ID] [color 1] [color 2]");
    if(!(
400 <= iVehicle <= 611))
        return 
SendClientMessage(playeridCOLOR_LIGHTRED"ERROR: Invalid model specified (model IDs start at 400, and end at 611).");
    if(!(
<= iColors[0] <= 255 && <= iColors[1] <= 255))
        return 
SendClientMessage(playeridCOLOR_LIGHTRED"ERROR: Invalid colour specified (IDs start at 0, and end at 255).");
    if (
GetPVarInt(playerid"PlayerLogged") == 0) return SendClientMessage(playeridCOLOR_WHITE"You must be logged in to use this.");
    if(!
AdminUser(playerid)) return SendClientMessage(playeridCOLOR_GREY"You need to create a admin user, /admincreate.");
    if(
GetPVarInt(playerid"AdminLogged") == 0) return SendClientMessage(playeridCOLOR_GREY"You need to login into your admin account, /adminlogin.");
    if(
GetPVarInt(playerid"Admin") < 2)
    {
        
GetPlayerPos(playeridPoz[0], Poz[1], Poz[2]); //getting player pos
        
GetPlayerFacingAngle(playeridPoz[3]); //getting player angle
        
CreateVehicle(strval(params), Poz[0]+4Poz[1], Poz[2], Poz[3], 00, -1); //creating vehicle
        
PutPlayerInVehicle(playerid0); //Puting player in vehicle as dirver
    
}
    else
    {
         
SendClientMessage(playeridCOLOR_LIGHTRED"SERVER: You do not have access to this command!");
    }
    return 
1
Reply


Messages In This Thread
Vehicle putplayinvehicle - by N0FeaR - 21.11.2015, 21:33
Re: Vehicle putplayinvehicle - by thefirestate - 21.11.2015, 21:38
Re: Vehicle putplayinvehicle - by Vince - 21.11.2015, 21:40
Re: Vehicle putplayinvehicle - by N0FeaR - 21.11.2015, 21:43
Re: Vehicle putplayinvehicle - by thefirestate - 21.11.2015, 21:43

Forum Jump:


Users browsing this thread: 1 Guest(s)