Help with create vehicle - 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 with create vehicle (
/showthread.php?tid=533198)
Help with create vehicle -
ZombieNest - 23.08.2014
Hi, I am scripting after a long time, I was making a system, I tried to compile it and I got some errors, It says something undefined symbol RCCAR what to do now?
Код:
new Float:x, Float:y, Float:z;
new rcol1 = random(100);
new rcol2 = random(50);
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
RCCAR = CreateVehicle(441, Float:x, Float:y, Float:z, 365, rcol1, rcol2, 0)
PutPlayerInVehicle(playerid, RCCAR, 0);
rcused[playerid] = 1;
return 1;
Re: Help with create vehicle -
Sawalha - 23.08.2014
Re: Help with create vehicle -
HazardouS - 23.08.2014
Replace these:
pawn Код:
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
RCCAR = CreateVehicle(441, Float:x, Float:y, Float:z, 365, rcol1, rcol2, 0);
with these:
pawn Код:
GetPlayerPos(playerid, x, y, z);
RCCAR = CreateVehicle(441, x, y, z, 5.0, rcol1, rcol2, 0);
Re: Help with create vehicle -
ZombieNest - 23.08.2014
EDIT: NVM Fixed