Help error.... - 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)
+--- Thread: Help error.... (
/showthread.php?tid=427096)
Help error.... -
Gaby29 - 31.03.2013
pawn Код:
D:\Jocuri\SAMP\sp edit\gamemodes\rpg.pwn(8999) : error 017: undefined symbol "IsValidVehicle"
D:\Jocuri\SAMP\sp edit\gamemodes\rpg.pwn(9451) : warning 204: symbol is assigned a value that is never used: "paperboy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
this is code:
pawn Код:
for(new veh = 1; veh < MAX_VEHICLES; veh++)
{
if(IsValidVehicle(veh))
{
SetVehicleParamsEx(veh,false,false,false,false,false,false,false);
}
}
Re: Help error.... -
judothijs - 31.03.2013
Did you make the callback IsValidVehicle and did you forward it?
Re: Help error.... -
Neil. - 31.03.2013
pawn Код:
//OnTop but under the include a_samp
native IsValidVehicle(vehicleid);
Re: Help error.... -
Konstantinos - 31.03.2013
pawn Код:
#include <a_samp>
native IsValidVehicle(vehicleid);
// somewhere
for(new veh = 1; veh < MAX_VEHICLES; veh++)
{
if(IsValidVehicle(veh))
{
SetVehicleParamsEx(veh,false,false,false,false,false,false,false);
}
}
About "paperboy", you've set a value to it but you actually never use it. Use it somewhere or just delete it.
Re: Help error.... -
Gaby29 - 31.03.2013
Quote:
Originally Posted by Dwane
pawn Код:
#include <a_samp>
native IsValidVehicle(vehicleid);
// somewhere for(new veh = 1; veh < MAX_VEHICLES; veh++) { if(IsValidVehicle(veh)) { SetVehicleParamsEx(veh,false,false,false,false,false,false,false); } }
About "paperboy", you've set a value to it but you actually never use it. Use it somewhere or just delete it.
|
Thx
EDIT: I still can not get into cars from factions ... How do I resolve this?
Re: Help error.... -
Konstantinos - 31.03.2013
Quote:
Originally Posted by Gaby29
EDIT: I still can not get into cars from factions ... How do I resolve this?
|
What do you mean? What do you want to do?
What the above code does is to loop through almost all the vehicles (it should start from 0, not 1) and if the vehicle is created then its will set the vehicle's parameters to false.
Re: Help error.... -
Gaby29 - 31.03.2013
Quote:
Originally Posted by Dwane
What do you mean? What do you want to do?
What the above code does is to loop through almost all the vehicles (it should start from 0, not 1) and if the vehicle is created then its will set the vehicle's parameters to false.
|
I can not get in the car and so I gave that code