03.08.2013, 22:42
Hi, i stored the ID's of the object in name, and when i put this in my function createobject, this last crash...
Thank you for your future help
Код:
stock ObjetInfo[][] = { {0,"Mauvais ID"}, {18645,"Casque"}, {19171,"Guide de Los Santos"}, {2894,"Contract de location"} };
Код:
stock createFloatEx(const floatid) { FloatInfo[floatid][fObject] = CreateObject(ObjetInfo[FloatInfo[floatid][fItemName]][0],FloatInfo[floatid][fX],FloatInfo[floatid][fY],FloatInfo[floatid][fZ], 0.0, 0.0, 96.0); cacheAltFloat[FloatInfo[floatid][fObject]] = floatid; format(stringtmp, TAILLE_STRING_CLASSIC, Orange_SAMP"%s\n"Blanc_SAMP"Appuyez sur Alt G. pour ramasser l'item", FloatInfo[floatid][fItemName]); FloatInfo[floatid][fText] = Create3DTextLabel(stringtmp,Couleur_Blanche,FloatInfo[floatid][fX],FloatInfo[floatid][fY],FloatInfo[floatid][fZ],5.0,FloatInfo[floatid][fVW],false); }