add n.o.s
#1

hi there i was woundering if there is a way to go /nos and the car that the person is in gets nos a little help?



thx for ur time
Reply
#2

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;
}
Reply
#3

Go download a Stunt GM, or fucking search. I'm sick of people not searching.
Reply
#4

Quote:
Originally Posted by Abernethy
Go download a Stunt GM, or fucking search. I'm sick of people not searching.
It doesn't matter how many times you say it, they'll never listen, Although I completely agree with you.
Reply
#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
#6

well someone help
Reply
#7

ic got this error from swift code and how do i stop it from crashing


C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\FRAS2.pwn(1505) : error 017: undefined symbol "AddVehcileComponent"
Reply
#8

Quote:
Originally Posted by sggassasin
ic got this error from swift code and how do i stop it from crashing


C:\Program Files\Rockstar Games\GTA San Andreas\samp sever\gamemodes\FRAS2.pwn(1505) : error 017: undefined symbol "AddVehcileComponent"
Change it to
pawn Код:
AddVehicleComponent // It was a simple typo.
// Usuage ;
AddVehicleComponent(/*VEH_ID*/, /*VEH_COMPONENT*/);
Reply
#9

where do i get a vehiclecomponent from coz i carnt find a list of them
Reply
#10

umm, object editor? the ream sa-mp object editor has ALL id's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)