SA-MP Forums Archive
[SOLVED]Whats wrong with my code? - 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: [SOLVED]Whats wrong with my code? (/showthread.php?tid=303877)



[SOLVED]Whats wrong with my code? - lukas567 - 15.12.2011

Hey!

Whats wrong?

My function:

Код:
CreateHouse(2, "Holy", 1, -1428.9027,-289.7404,14.1484,244.411987,305.032989,999.148437, 100,50, 1, 0);
Stock:

Код:
stock CreateHouse(houseid, Street[], HouseNumber, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior, virtualworld)
    {
Code that sets House Number:

Код:
HouseDB[houseid][HNumber]=HouseNumber;
Code that shows on Text Label:

Код:
format(text,sizeof(text),"%s Street\n%i",HouseDB[houseid][St],HouseDB[houseid][HNumber]);
            Create3DTextLabel(text,0x008080FF,iconX,iconY, iconZ,10.0,0);
On Label it shows Streets names, but on House Numbers it shows number 177, even if it set to 1...

No errors, no warnings


Re: Whats wrong with my code? - lukas567 - 15.12.2011

SOLVED by my self