add n.o.s
#5

Quote:
Originally Posted by Swift_
Untested
pawn Код:
if(strcmp(cmdtext, "/nos", true) == 0)
{
  if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, color, "Must be in vehicle to use this command!");
  AddVehcileComponent(GetPlayerVehicleID(playerid), 1010);
  SendClientMessage(playerid, color, "Nos added");
  return 1;
}
This command doesn't check if the player is on a nos-addable vehicle. If you'll type that command on a bike or in a vehicle, which can't get NOS, you'll crash.
Reply


Messages In This Thread
add n.o.s - by sggassasin - 30.06.2009, 04:08
Re: add n.o.s - by Grim_ - 30.06.2009, 04:26
Re: add n.o.s - by Abernethy - 30.06.2009, 04:58
Re: add n.o.s - by Grim_ - 30.06.2009, 05:02
Re: add n.o.s - by SpiderPork - 30.06.2009, 05:37
Re: add n.o.s - by sggassasin - 30.06.2009, 06:02
Re: add n.o.s - by sggassasin - 30.06.2009, 06:04
Re: add n.o.s - by •Ajax• - 30.06.2009, 06:09
Re: add n.o.s - by sggassasin - 30.06.2009, 06:14
Re: add n.o.s - by Ignas1337 - 30.06.2009, 06:17

Forum Jump:


Users browsing this thread: 1 Guest(s)