SA-MP Forums Archive
Dynamic Property System.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dynamic Property System.. (/showthread.php?tid=395743)



Dynamic Property System.. - tomsalmon - 27.11.2012

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


Re: Dynamic Property System.. - tomsalmon - 27.11.2012

SOMEONE?!?


Re: Dynamic Property System.. - Scenario - 27.11.2012

Quote:

No double posting. There is a modify button , please use it. However, bumping a topic in which you have or require further information is allowed after at least 24 hours.

Read the forum rules next time.

--

In regards to your problem, has the information from the file been loaded yet?


Re: Dynamic Property System.. - tomsalmon - 27.11.2012

Yes, I Saved the information of the pickup i created. PosX Y Z, OwnerBy, Name, Price, PayMoney, everything needed.
do you know what the problem?


Re: Dynamic Property System.. - Scenario - 27.11.2012

I was asking if you were LOADING the information before attempting to create the pickup...