Variable not displaying. - 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: Variable not displaying. (
/showthread.php?tid=611530)
Variable not displaying. -
danielpalade - 07.07.2016
Deleted.
Re: Variable not displaying. -
DarkSkull - 07.07.2016
I have the same problem. I'm working on a vehicle system as well uskng YINI. Even in my case, The owner's name won't be displayed. Everything loads fine.
Re: Variable not displaying. -
Napst34 - 07.07.2016
Add a vOwned in the enum and check if the car is owned or not (if owned show the name of the owner).
and don't forget to do vehStat[vehid][vOwned] = 1; when someone buy a vйhicule to stock it into the BDD.
Sorry for my bad english i'm french x)
Re: Variable not displaying. -
danielpalade - 07.07.2016
Quote:
Originally Posted by Napst34
Add a vOwned in the enum and check if the car is owned or not (if owned show the name of the owner).
and don't forget to do vehStat[vehid][vOwned] = 1; when someone buy a vйhicule to stock it into the BDD.
Sorry for my bad english i'm french x)
|
I already have that. I have the "vOwnerID" variable.
Re: Variable not displaying. -
Napst34 - 07.07.2016
the vOwned check if the care is owned or not, if owned it's 1 if not it's 0
Re: Variable not displaying. -
danielpalade - 07.07.2016
Quote:
Originally Posted by Napst34
the vOwned check if the care is owned or not, if owned it's 1 if not it's 0
|
That is not the problem. I've found something new tho.
Let's say I have 1 vehicle. If I enter it, the string doesn't display the variable.
But if I have 2 vehicle, then my first vehicle will send the message with the right variable, and the second vehicle won't.
This applies to every amount of cars. Only the last car doesn't display the variable.