SA-MP Forums Archive
Cargo system listing like LS*RP - 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: Cargo system listing like LS*RP (/showthread.php?tid=638387)



Cargo system listing like LS*RP - valelele - 31.07.2017

I have created from 0 one system like LS-RP Cargo. I have a problem, I have created the table in mysql but always if i buy the fruits cargo he returns me in /cargo list the ID 2 from mysql(meat not fruits)

Код:
format(msg, sizeof(msg), "{FFFFFF}%d\t{C5E66C}%s\t%d container", CargoInfo[c][ObjectId], CargoInfo[c][ObjectName], VehicleInfo[carid][vContainer]);
				    ShowPlayerDialogEx(playerid, 600, DIALOG_STYLE_LIST, "Vehicle Cargo", msg, "Pickup", "Exit");

This is the command, he always return the id2 and don't calculate the all ids ( 1 and 2 )
why?