some errors - 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: some errors (
/showthread.php?tid=355874)
some errors -
ronen4kill - 01.07.2012
PHP код:
ShowPlayerDialog(playerid, AMMO_DIALOG, DIALOG_STYLE_MSGBOX, "Weapons Shop","{ffffff}01.Knife [3000]\n 02.Katana [3000]\n 03.Sawn Off Shotgun [5000] {ff0000}[150]\n {ffffff}04.Combat Shotgun [5000] {ff0000}[150]\n {ffffff}05.MP5 [3500] {ff0000}[300]\n {ffffff}06.Micro Uzi [3500] {ff0000}[300]\n {ffffff}07.Tec-9 [3500] {ff0000}[300]\n {ffffff}08.M4 [9000] {ff0000}[200]\n {ffffff}09.AK-47 [8500] {ff0000}[200]\n {ffffff}10.Silenced Pistol [4500] {ff0000}[120]\n {ffffff}11.Sniper Rifle [20000] {ff0000}[20]\n {ffffff}12.Armour [1000000]", "Buy", "Close");
it gives me that errors:
PHP код:
error 075: input line too long (after substitutions)
error 027: invalid character constant
error 017: undefined symbol "ffffff"
warning 215: expression has no effect
error 001: expected token: ";", but found "."
fatal error 107: too many error messages on one line
I know its because the line is too long but i dont know how to shorten it..
Re: some errors -
Kingunit - 01.07.2012
Learn to use ****** for these things.
Re: some errors -
ronen4kill - 01.07.2012
Quote:
Originally Posted by Kingunit
|
I searched this things i found a way to use ~w~ but is also doesnt work.. any idea?
Re: some errors -
LaGrande - 01.07.2012
pawn Код:
ShowPlayerDialog(playerid, AMMO_DIALOG, DIALOG_STYLE_MSGBOX, "Weapons Shop",
"{ffffff}01.Knife [3000]\n 02.Katana [3000]\n 03.Sawn Off Shotgun [5000] {ff0000}[150]\n {ffffff}04.Combat Shotgun [5000] {ff0000}[150]\n {ffffff}05.MP5 [3500] {ff0000}[300]\n {ffffff}06.Micro Uzi [3500] {ff0000}[300]\n {ffffff}07.Tec-9 [3500] {ff0000}[300]\n {ffffff}08.M4 [9000] {ff0000}[200]\n {ffffff}09.AK-47 [8500] {ff0000}[200]\n {ffffff}10.Silenced Pistol [4500] {ff0000}[120]\n {ffffff}11.Sniper Rifle [20000] {ff0000}[20]\n {ffffff}12.Armour [1000000]", "Buy", "Close");
Breaking it into two lines wont matter if you do it in correct way
Re: some errors -
ronen4kill - 01.07.2012
Quote:
Originally Posted by LaGrande
pawn Код:
ShowPlayerDialog(playerid, AMMO_DIALOG, DIALOG_STYLE_MSGBOX, "Weapons Shop", "{ffffff}01.Knife [3000]\n 02.Katana [3000]\n 03.Sawn Off Shotgun [5000] {ff0000}[150]\n {ffffff}04.Combat Shotgun [5000] {ff0000}[150]\n {ffffff}05.MP5 [3500] {ff0000}[300]\n {ffffff}06.Micro Uzi [3500] {ff0000}[300]\n {ffffff}07.Tec-9 [3500] {ff0000}[300]\n {ffffff}08.M4 [9000] {ff0000}[200]\n {ffffff}09.AK-47 [8500] {ff0000}[200]\n {ffffff}10.Silenced Pistol [4500] {ff0000}[120]\n {ffffff}11.Sniper Rifle [20000] {ff0000}[20]\n {ffffff}12.Armour [1000000]", "Buy", "Close");
Breaking it into two lines wont matter if you do it in correct way
|
Still cant understand how i can fix this
Re: some errors -
LaGrande - 01.07.2012
press enter at appropriate place to break them. just copy/paste it in ur script
Re: some errors -
ronen4kill - 01.07.2012
Quote:
Originally Posted by LaGrande
press enter at appropriate place to break them. just copy/paste it in ur script
|
Strange.. when i firstly tried to do that it gave me an error.. and now it works
Thank you.