28.03.2012, 17:16
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
but after another look you might get away with trying this code using or || instead of and &&
this will display the dialog if they have 1 or more matches
also this code is not right
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.
like instead of VehicleSlot1[playerid]
you need a 2d array that you can loop threw
like
pawn Код:
VehicleSlots[playerid][SlotID];
pawn Код:
if(VehicleSlot1[playerid] > 0 || VehicleSlot2[playerid] > 0 || VehicleSlot3[playerid] > 0)
also this code is not right
pawn Код:
format(string1, sizeof(string1), "%s - (%d)\n2. %s - (%d)\n 3. %s - (%d)\n", VehicleNames[name], v);
youll really have to rework all the code i suspect to get it working correctly.