Dynamic Property System..
#1

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:

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"), 5001);

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
Reply


Messages In This Thread
Dynamic Property System.. - by tomsalmon - 27.11.2012, 15:42
Re: Dynamic Property System.. - by tomsalmon - 27.11.2012, 17:26
Re: Dynamic Property System.. - by Scenario - 27.11.2012, 17:54
Re: Dynamic Property System.. - by tomsalmon - 27.11.2012, 18:30
Re: Dynamic Property System.. - by Scenario - 27.11.2012, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)