Plate Posted March 13, 2013 Posted March 13, 2013 function getTheData() if getElementData(localPlayer, "Sniper Rifle") then local row1 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row1, 1, "Sniper Rifle", false, false) elseif getElementData(localPlayer, "M4") then local row2 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row2, 1, "M4", false, false) elseif getElementData(localPlayer, "MP5") then local row3 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row3, 1, "MP5", false, false) elseif getElementData(localPlayer, "Rocket Launcher") then local row4 = guiGridListAddRow(itemGrid) guiGridListSetItemText(itemGrid, row4, 1, "Rocket Launcher", false, false) end end Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
NodZen Posted March 13, 2013 Posted March 13, 2013 Dónde definiste localPlayer? ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Castillo Posted March 13, 2013 Posted March 13, 2013 "localPlayer" es una variable del MTA, no hace falta definirla. @Plate: Porque no lo probas y listo? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted March 13, 2013 Author Posted March 13, 2013 Probá onVehicleDamage... WTF Ya lo probe y no anda Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Renkon Posted March 13, 2013 Posted March 13, 2013 Probá onVehicleDamage... WTF Ya lo probe y no anda LOL me confundi de thread
NodZen Posted March 13, 2013 Posted March 13, 2013 "localPlayer" es una variable del MTA, no hace falta definirla.@Plate: Porque no lo probas y listo? Ah! ok, No sabia . ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Recommended Posts