SA-MP Forums Archive
Complie problem. - 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: Complie problem. (/showthread.php?tid=616223)



Complie problem. - Kyriee - 02.09.2016

I can't complie my script. When I'm starting complaining it shows that complier libary has stoped workin'.

The codes which I added recently are

PHP код:
public OnGameModeInit()
{
    
CreateDynamicObject(3749, -2931.3999471.700019.800270);
    
CreateDynamicObject(987, -2931.7487400180);
    
CreateDynamicObject(987, -2931.8453.6000140090);
    
CreateDynamicObject(987, -2931.5477.799840090);
    
CreateDynamicObject(987, -2933.2486.70001400180);
    
CreateDynamicObject(987, -2950.2487.10001400180);
    
CreateDynamicObject(987, -2961.3999487400180);
    
CreateDynamicObject(987, -2997.5466.200013.900270);
    
CreateDynamicObject(9259, -2989.5996474.5996110.100180);
    
CreateDynamicObject(987, -2978.3994487.09961400180);
    
CreateDynamicObject(987, -2955.5454.399993.9000);
    
CreateDynamicObject(987, -2943.6001454.53.900360);
    
CreateDynamicObject(987, -2967.5454.299993.9000);
    
CreateDynamicObject(987, -2979.5454.299993.9000);
    
CreateDynamicObject(987, -2991.6001454.299993.9000);
    
CreateDynamicObject(987, -2997.6001454.399993.9000);
    
CreateDynamicObject(980, -2931.2002471.599616.700270);
    
CreateDynamicObject(986, -2947.3999487.53.300180);
    
CreateDynamicObject(985, -2976.3487.53.300180);
    
CreateDynamicObject(3928, -2970.2465.899994.2000);
    
CreateDynamicObject(3928, -2949.8999465.799994.2000);
    
CreateDynamicObject(3092, -2931.2454.799995000);




Re: Complie problem. - AlexPalermitano97 - 02.09.2016

If you remove this object the computer makes you fill?


Re: Complie problem. - Kyriee - 02.09.2016

Yes, I dont have any problem after removing it.


Re: Complie problem. - AlexPalermitano97 - 02.09.2016

You have a latest version of streamer?

Plugin and include


Re: Complie problem. - Kyriee - 02.09.2016

Idk. Its satdm v9 can u give me download link ?


Re: Complie problem. - Kyriee - 02.09.2016

Anybody


Re: Complie problem. - Kyriee - 02.09.2016

I updated streamer and same. More solutions?


Re: Complie problem. - Vince - 02.09.2016

There is nothing wrong with this particular piece of code. You probably pasted it somewhere inappropriate. It's supposed to be merged with the existing OnGameModeInit. You cannot naively paste code anywhere you want and expect it to work, just like that *snaps fingers*.


Re: Complie problem. - Sew_Sumi - 02.09.2016

Just per chance, did you remove the .0000 off the ends of the co-ords, because that could cause trouble.


This is just a guess, but it's because some are to one decimal place, others are 4, and yet some are no decimal place at all.


Re: Complie problem. - Kyriee - 03.09.2016

Quote:
Originally Posted by Vince
Посмотреть сообщение
There is nothing wrong with this particular piece of code. You probably pasted it somewhere inappropriate. It's supposed to be merged with the existing OnGameModeInit. You cannot naively paste code anywhere you want and expect it to work, just like that *snaps fingers*.
I just made map in MTA, then I went to Delux MAP converter and converted it in pawn codes. And pasted it. Whats wrong here now ?