Easiest Way to do this?
#2

well the way it looks to me is your code would have to work slightly different

like instead of VehicleSlot1[playerid]

you need a 2d array that you can loop threw
like
pawn Код:
VehicleSlots[playerid][SlotID];
but after another look you might get away with trying this code using or || instead of and &&

pawn Код:
if(VehicleSlot1[playerid] > 0 || VehicleSlot2[playerid] > 0 || VehicleSlot3[playerid] > 0)
this will display the dialog if they have 1 or more matches
also this code is not right

pawn Код:
format(string1, sizeof(string1), "%s - (%d)\n2. %s - (%d)\n 3. %s - (%d)\n", VehicleNames[name], v);
it will only format the first %s and the first %d as you provide no arguments for the others


youll really have to rework all the code i suspect to get it working correctly.
Reply


Messages In This Thread
Easiest Way to do this? - by Dokins - 28.03.2012, 16:51
Re: Easiest Way to do this? - by Jonny5 - 28.03.2012, 17:16
Re: Easiest Way to do this? - by Dokins - 28.03.2012, 17:19
Re: Easiest Way to do this? - by Jonny5 - 28.03.2012, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)