SA-MP Forums Archive
Help needed with Create3DTextLabel - 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: Help needed with Create3DTextLabel (/showthread.php?tid=444750)



Help needed with Create3DTextLabel - Songason - 18.06.2013

Code:
Код:
Create3DTextLabel(/adminroof to go up,-8388353,1847.587036,-1761.849609,13.546875,40,0,0); **LINE 60**
Create3DTextLabel(/admindown to go down,-10485505,1889.017333,-1782.904785,25.791057,40,0,0); **LINE 61**
Errors:

Код:
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(60) : error 029: invalid expression, assumed zero
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(60) : error 017: undefined symbol "adminroof"
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(60) : error 017: undefined symbol "to"
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(60) : fatal error 107: too many error messages on one line



Re: Help needed with Create3DTextLabel - Songason - 18.06.2013

The weird thing is is that an generator made these lines so they should be good - right?


Re: Help needed with Create3DTextLabel - JJB562 - 18.06.2013

Try this:

pawn Код:
Create3DTextLabel("/adminroof to go up",COLOR_HERE,1847.587036,-1761.849609,13.546875,40,0,0);
Create3DTextLabel("/admindown to go down",COLOR_HERE,1889.017333,-1782.904785,25.791057,40,0,0);



Re: Help needed with Create3DTextLabel - Songason - 18.06.2013

Quote:
Originally Posted by JJB562
Посмотреть сообщение
Try this:

pawn Код:
Create3DTextLabel("/adminroof to go up",COLOR_HERE,1847.587036,-1761.849609,13.546875,40,0,0);
Create3DTextLabel("/admindown to go down",COLOR_HERE,1889.017333,-1782.904785,25.791057,40,0,0);
Gives me:
Код:
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(60) : warning 202: number of arguments does not match definition
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(61) : warning 202: number of arguments does not match definition



Re: Help needed with Create3DTextLabel - JJB562 - 18.06.2013

Are you sure?
pawn Код:
Create3DTextLabel("/adminroof to go up", 0x008080FF, 1847.587036, -1761.849609, 13.546875, 40.0, 0, 0);
Create3DTextLabel("/admindown to go down", 0x008080FF, 1889.017333, -1782.904785, 25.791057, 40.0, 0, 0);



Re: Help needed with Create3DTextLabel - Realds - 18.06.2013

Quote:
Originally Posted by Songason
Посмотреть сообщение
Gives me:
Код:
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(60) : warning 202: number of arguments does not match definition
C:\Users\Sonny\Desktop\SAMP server\pawno\NewBorn RP.pwn(61) : warning 202: number of arguments does not match definition
Did you change the COLOR_HERE?


Re: Help needed with Create3DTextLabel - Songason - 18.06.2013

Quote:
Originally Posted by Realds
Посмотреть сообщение
Did you change the COLOR_HERE?
Ofcourse.


Re: Help needed with Create3DTextLabel - DobbysGamertag - 18.06.2013

pawn Код:
Create3DTextLabel("/adminroof to go up",0x008080FF,1847.587036,-1761.849609, 13.546875,40.0,0, 0);
    Create3DTextLabel("/admindown to go down",0x008080FF,1889.017333, -1782.904785, 25.791057,40.0,0, 0);
That compiles fine.


Re: Help needed with Create3DTextLabel - Songason - 18.06.2013

Quote:
Originally Posted by DobbysGamertag
Посмотреть сообщение
pawn Код:
Create3DTextLabel("/adminroof to go up",0x008080FF,1847.587036,-1761.849609, 13.546875,40.0,0, 0);
    Create3DTextLabel("/admindown to go down",0x008080FF,1889.017333, -1782.904785, 25.791057,40.0,0, 0);
That compiles fine.
Thanks - works.