add n.o.s - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: add n.o.s (
/showthread.php?tid=84318)
add n.o.s -
sggassasin - 30.06.2009
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
Re: add n.o.s -
Grim_ - 30.06.2009
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;
}
Re: add n.o.s -
Abernethy - 30.06.2009
Go download a Stunt GM, or fucking search. I'm sick of people
not searching.
Re: add n.o.s -
Grim_ - 30.06.2009
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.
Re: add n.o.s -
SpiderPork - 30.06.2009
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.
Re: add n.o.s -
sggassasin - 30.06.2009
well someone help
Re: add n.o.s -
sggassasin - 30.06.2009
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"
Re: add n.o.s -
•Ajax• - 30.06.2009
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*/);
Re: add n.o.s -
sggassasin - 30.06.2009
where do i get a vehiclecomponent from coz i carnt find a list of them
Re: add n.o.s -
Ignas1337 - 30.06.2009
umm, object editor? the ream sa-mp object editor has ALL id's