SA-MP Forums Archive
4 erros one line help pls![TextDraw] - 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: 4 erros one line help pls![TextDraw] (/showthread.php?tid=597614)



4 erros one line help pls![TextDraw] - Rajko123 - 02.01.2016

Hey i just want to make register system with IDt textdraw editor and i put on my gamemode and this errors

Код:
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : error 028: invalid subscript (not an array or too many subscripts): "Textdraw0"
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : warning 215: expression has no effect
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : error 001: expected token: ";", but found "]"
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Line
Код:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 184.000137, 79.644416,) "Registracija");
Registracija means Register..(sorry english)

EDIT:i have this
Код:
//Player Textdraws:

new PlayerText:TextDraw0[MAX_PLAYERS];
new PlayerText:TextDraw1[MAX_PLAYERS];
new PlayerText:TextDraw2[MAX_PLAYERS];
new PlayerText:TextDraw3[MAX_PLAYERS];
new PlayerText:TextDraw4[MAX_PLAYERS];
new PlayerText:TextDraw5[MAX_PLAYERS];
I make Textdraw0 on TextDraw0 now i have another error
Код:
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : warning 215: expression has no effect
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : error 001: expected token: ";", but found ")"
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : error 029: invalid expression, assumed zero
C:\Users\Matej\Desktop\Pink Panters Role Play\gamemodes\pprp.pwn(565) : fatal error 107: too many error messages on one line



Re: 4 erros one line help pls![TextDraw] - Kucin666 - 02.01.2016

Код:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 184.000137, 79.644416,) "Registracija");
Try to remove )
To
Код:
Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 184.000137, 79.644416, "Registracija");



Re: 4 erros one line help pls![TextDraw] - Rajko123 - 02.01.2016

Damn i can't fix this :/


Re: 4 erros one line help pls![TextDraw] - AndySedeyn - 02.01.2016

Kucin666 gave you the solution.


Re: 4 erros one line help pls![TextDraw] - Rajko123 - 02.01.2016

fixed..thank you very much <33
EDIT:where to put all 500 lines,all that,i put on "OnPlayerConnect" and "OnPlayerRequestClass"and it doesnt show on screen ,i dont have system register and login is that the problem that doesn't show on screen?