SA-MP Forums Archive
Vehicle buy problem - 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: Vehicle buy problem (/showthread.php?tid=406297)



Vehicle buy problem - Fernado Samuel - 09.01.2013

Removed


Re: Vehicle buy problem - EAsT-OAK_510 - 09.01.2013

Where is your "You have reached the limit of 2 vehicles" Message? Please paste it. I noticed that also you are not setting the value to 0 when someone sells either car 1 or 2.


Re: Vehicle buy problem - Fernado Samuel - 09.01.2013

Removed


Re: Vehicle buy problem - EAsT-OAK_510 - 09.01.2013

What are the two variables you are using to save the vehicles?


Re: Vehicle buy problem - Fernado Samuel - 09.01.2013

Removed


Re: Vehicle buy problem - Fernado Samuel - 10.01.2013

Please help


Re : Vehicle buy problem - yusei - 10.01.2013

for(new i = 0; i < MAX_BUYABLE_VEH; ++i)

to

for(new i = 0; i < MAX_BUYABLE_VEH; i++)


Re: Re : Vehicle buy problem - Fernado Samuel - 10.01.2013

Removed


Re : Vehicle buy problem - yusei - 10.01.2013

try to change this

#define MAX_BUYABLE_VEH 50

to

#define MAX_BUYABLE_VEH 2


Re: Vehicle buy problem - Threshold - 10.01.2013

You should really be taking away 1 from Total_Player_Vehicles[playerid] every time you use the /sell command properly.

So just add
pawn Код:
Total_Player_Vehicles[playerid] -= 1;
under your /sell command.