Vehicle buy problem
#1

Removed
Reply
#2

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.
Reply
#3

Removed
Reply
#4

What are the two variables you are using to save the vehicles?
Reply
#5

Removed
Reply
#6

Please help
Reply
#7

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

to

for(new i = 0; i < MAX_BUYABLE_VEH; i++)
Reply
#8

Removed
Reply
#9

try to change this

#define MAX_BUYABLE_VEH 50

to

#define MAX_BUYABLE_VEH 2
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)