sscanf wierd problem
#1

Код:
COMMAND:createvehicle(playerid, params[])
{
	print("wtf");
	new    model;
	new    price;
	new    buyable;
	new    rent;
	new    faction;
	new    crew;
	new    job;
	new    color1;
	new    color2;
	print("wtf1");
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only admins allowed to use this command");
    print("wtf2");
	if(sscanf(params, "iiiiiiiii", model, price, buyable, rent, faction, crew, job, color1, color2)) return SendError(playerid, "USAGE: /createvehicle <model> <price> <buyprice> <rent> <faction> <crew> <job> <color1> <color2>  - Buy Price: If the vehicle won't be buyable set it to -1, Rent: Same with buy price, Faction: Same, Crew: Same, Job:Same, Color- Read wiki");
      CreateVehicleEx(playerid, model, price, buyable, rent, faction, crew, job, color1, color2);
      print("wtf3");
      SendFormattedMessage(playerid, COLOR_YELLOW, "Vehicle Model: %d has been created!", model);
      print("wtf4");
      return 1;
}
when i type /createvehicle it doesn't show the command syntax...
But for other commands it shows the syntax
Reply


Messages In This Thread
sscanf wierd problem - by armyoftwo - 27.10.2010, 10:30
Re: sscanf wierd problem - by Calgon - 27.10.2010, 10:36
Re: sscanf wierd problem - by armyoftwo - 27.10.2010, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)