Please help me fix this error. Probebly quite minor. Im just a noobie
#1

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.
Reply
#2

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

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);
Reply
#4

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

ignore last comment ty sir.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)