bug ObjectInfo
#1

Hi, i stored the ID's of the object in name, and when i put this in my function createobject, this last crash...


Код:
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); 
}
Thank you for your future help
Reply


Messages In This Thread
bug ObjectInfo - by DarkZeroX - 03.08.2013, 22:42
Re : bug ObjectInfo - by DarkZeroX - 07.08.2013, 21:32
Re: bug ObjectInfo - by BoU3A - 07.08.2013, 22:46
Re : bug ObjectInfo - by DarkZeroX - 08.08.2013, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)