SA-MP Forums Archive
Please help me fix this error. Probebly quite minor. Im just a noobie - 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: Please help me fix this error. Probebly quite minor. Im just a noobie (/showthread.php?tid=490845)



[Fixed] Thanks - RyanEng16 - 28.01.2014

Help!

When I try this,
Create3DTextLabel("[Police Department] \n Press \"ENTER\" to enter the Place.",0xFFFF00AA, 1554.9537,-1675.6584,16.1953, 20,0,1);
or this
Create3DTextLabel("[Police Department] \n Press \"ENTER"\" to enter the Place.",0xFFFF00AA, 1554.9537,-1675.6584,16.1953, 20,0,1);

I get these errors:
gamemodes\erp.pwn(9) : warning 216: nested comment
gamemodes\erp.pwn(25515) : warning 202: number of arguments does not match definition
gamemodes\erp.pwn(35039) : error 001: expected token: "-string end-", but found "-identifier-"
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : warning 215: expression has no effect
gamemodes\erp.pwn(35039) : error 001: expected token: ";", but found ")"
gamemodes\erp.pwn(35039) : fatal error 107: too many error messages on one line

This was the original what I changed.
Create3DTextLabel("[Police Department] \n Press \"ENTER VEHICLE\" to enter the Place.",0xFFFF00AA, 1554.9537,-1675.6584,16.1953, 20,0,1);

As you can see all's I did was deleted the word VEHICLE but it still dident work so i added a " on the end of ENTER and still it dosent work.
Anybody help me?
Its probebly a very minor problem but im pretty clueless of how to fix it. Apart from adding Vehicle back, Whcih I dont really want.

Yeah im new to all this just started trying to script again so help please.


Re: Please help me fix this error. Probebly quite minor. Im just a noobie - Vanter - 28.01.2014

try this
pawn Код:
Create3DTextLabel("[Police Department] \n Press '\ENTER'\n to enter the Place.",0xFFFF00AA, 1554.9537,-1675.6584,16.1953, 20,0,1);



Re: Please help me fix this error. Probebly quite minor. Im just a noobie - Konstantinos - 28.01.2014

Quote:
Originally Posted by RyanEng16
Посмотреть сообщение
Create3DTextLabel("[Police Department] \n Press \"ENTER"\" to enter the Place.",0xFFFF00AA, 1554.9537,-1675.6584,16.1953, 20,0,1);
This is wrong and that's why you get the errors. Change to:
pawn Код:
Create3DTextLabel("[Police Department] \n Press \"ENTER\" to enter the Place.",0xFFFF00AA, 1554.9537,-1675.6584,16.1953, 20,0,1);



Re: Please help me fix this error. Probebly quite minor. Im just a noobie - RyanEng16 - 28.01.2014

I don't want the "Enter Vehicle" just enter!


Re: Please help me fix this error. Probebly quite minor. Im just a noobie - RyanEng16 - 28.01.2014

ignore last comment ty sir.