27.11.2012, 15:42
Hello.. i made a command to create a property, and she saves all the information in file.
and in OnGameModeInit i tried to do this:
the problem: the code not create the pickup after GMX, but in the command it is working
someone know what the problem on this code and help me to fix that? thanks for helpers
and in OnGameModeInit i tried to do this:
PHP код:
#define MAX_PROP 150
Loop(i,MAX_PROP)
{
format(file,sizeof(file),"InfinityDM/Props/%d.txt",i);
Prop[i] = CreatePickup(1273,1,dini_Float(file,"PosX"),dini_Float(file,"PosY"),dini_Float(file,"PosZ"),0);
new string[150];
format(string,150,"%s :рлс жд\n%d$ :фрей мшлйщд бозйш\n%d$ :блм 2 гчеъ ъчбм ооре",dini_Get(file,"PropName"),dini_Int(file,"Price"),dini_Int(file,"PayMoney"));
PropText[i] = Create3DTextLabel(string,white,dini_Float(file,"PosX"),dini_Float(file,"PosY"),dini_Float(file,"PosZ"), 50, 0, 1);
}
someone know what the problem on this code and help me to fix that? thanks for helpers