Plate Posted March 13, 2013 Share 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 Link to comment
NodZen Posted March 13, 2013 Share Posted March 13, 2013 Dónde definiste localPlayer? Link to comment
Castillo Posted March 13, 2013 Share Posted March 13, 2013 "localPlayer" es una variable del MTA, no hace falta definirla. @Plate: Porque no lo probas y listo? Link to comment
Plate Posted March 13, 2013 Author Share Posted March 13, 2013 Probá onVehicleDamage... WTF Ya lo probe y no anda Link to comment
Renkon Posted March 13, 2013 Share Posted March 13, 2013 Probá onVehicleDamage... WTF Ya lo probe y no anda LOL me confundi de thread Link to comment
NodZen Posted March 13, 2013 Share 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 . Link to comment
Recommended Posts