[SOLVED]Ugh...line shows me thousands of errors but when i remove it all goes OK
#1

i really need this line :
pawn Код:
case 6: ShowPlayerDialog(playerid,46,DIALOG_STYLE_LIST,"Give What Weapon","Brass Knuckles [ID:1]\nGolf Club [ID:2]\nNite Stick [ID:3]\nKnife [ID:4]\nBaseball Bat [ID:5]\nShovel [ID:6]\nPool Cue [ID:7]\nKatana [ID:8]\nChainsaw [ID:9]\nPruple Dildo [ID:10]\nSmall White Vibrator [ID:11]\nLarge White Vibrator [ID:12]\nSilver Vibrator [ID:13]\nFlowers [ID:14]\nCane [ID:15]\nGrenade [ID:16]\nTear Gas [ID:17]\nMolotov Cocktail [ID:18]\nPistol [ID:22]\n Silenced Pistol [ID:23]\nDesert_Eagle [ID:24]\nShotgun [ID:25]\nSawnoff-Shotgun [ID:26]\nUzi [ID:28]\nMP5 [ID:29]\nAK-47 [ID:30]\nM4 [ID:31]\nTEC-9 [ID:32]","Give","Cancel");
i think its too long btw...title says it .
Reply
#2

Try "cutting" it up some.
pawn Код:
case 6: ShowPlayerDialog(playerid,46,DIALOG_STYLE_LIST,"Give What Weapon","Brass Knuckles [ID:1]\nGolf Club [ID:2]\nNite Stick [ID:3]\n
Knife [ID:4]\nBaseball Bat [ID:5]\nShovel [ID:6]\n
Pool Cue [ID:7]\nKatana [ID:8]\nChainsaw [ID:9]\n
Pruple Dildo [ID:10]\nSmall White Vibrator [ID:11]\nLarge White Vibrator [ID:12]\n
Silver Vibrator [ID:13]\nFlowers [ID:14]\nCane [ID:15]\nGrenade [ID:16]\n
Tear Gas [ID:17]\nMolotov Cocktail [ID:18]\nPistol [ID:22]\n Silenced Pistol [ID:23]\n
Desert_Eagle [ID:24]\nShotgun [ID:25]\nSawnoff-Shotgun [ID:26]\nUzi [ID:28]\n
MP5 [ID:29]\nAK-47 [ID:30]\nM4 [ID:31]\nTEC-9 [ID:32]"
,"Give","Cancel");
Put it like that into pawno and it shouldn't give you an error.

Reply
#3

Quote:
Originally Posted by _Xerxes_
Try "cutting" it up some.
pawn Код:
case 6: ShowPlayerDialog(playerid,46,DIALOG_STYLE_LIST,"Give What Weapon","Brass Knuckles [ID:1]\nGolf Club [ID:2]\nNite Stick [ID:3]\n
Knife [ID:4]\nBaseball Bat [ID:5]\nShovel [ID:6]\n
Pool Cue [ID:7]\nKatana [ID:8]\nChainsaw [ID:9]\n
Pruple Dildo [ID:10]\nSmall White Vibrator [ID:11]\nLarge White Vibrator [ID:12]\n
Silver Vibrator [ID:13]\nFlowers [ID:14]\nCane [ID:15]\nGrenade [ID:16]\n
Tear Gas [ID:17]\nMolotov Cocktail [ID:18]\nPistol [ID:22]\n Silenced Pistol [ID:23]\n
Desert_Eagle [ID:24]\nShotgun [ID:25]\nSawnoff-Shotgun [ID:26]\nUzi [ID:28]\n
MP5 [ID:29]\nAK-47 [ID:30]\nM4 [ID:31]\nTEC-9 [ID:32]"
,"Give","Cancel");
Put it like that into pawno and it shouldn't give you an error.

well i still get three thousand warrnings . only when i remove the thing it doesnt show em .
Reply
#4

What are the errors, i thought you were only getting one.
Reply
#5

Quote:
Originally Posted by _Xerxes_
What are the errors, i thought you were only getting one.
well all possible strings show a "shadow" and i get 3 errors ( 1 fatal error )

Код:
(141) : warning 219: local variable "string" shadows a variable at a preceding level // thousands of these in dutils.inc wich i hadn't
(163) : warning 219: local variable "string" shadows a variable at a preceding level // before i codded that line and when i remove it
(171) : warning 219: local variable "string" shadows a variable at a preceding level // i dont have any error
(211) : warning 219: local variable "string" shadows a variable at a preceding level
(355) : error 037: invalid string (possibly non-terminated string)
(355) : error 017: undefined symbol "Knuckles"
(355) : warning 215: expression has no effect
(355) : error 001: expected token: ";", but found "]"
(355) : fatal error 107: too many error messages on one line
privacy protection : removed file locations !
Reply
#6

It's the 500 chars limit which Pawno has, make it smaller than that and it will go away dude.
Reply
#7

The first four errors are because you created a global variable and a regular variable of "string".
The others, is line 355 the dialog line?

Donny: You can avoid it by chopping it up. Atleast, I have many times.
Reply
#8

Quote:
Originally Posted by _Xerxes_
The first four errors are because you created a global variable and a regular variable of "string".
The others, is line 355 the dialog line?

Donny: You can avoid it by chopping it up. Atleast, I have many times.
no the warrnings dont exist without that line . DONT EXIST. This is my fix :

pawn Код:
case 6: ShowPlayerDialog(playerid,46,DIALOG_STYLE_LIST,"Give What Weapon","Light Weapons\nGas & Explosives\nPistols \nShotguns\nMini SMGs\nRifles,Gunnery\nHeavy Weapon\nMisc","Choose","Cancel");
Reply
#9

Quote:
Originally Posted by _Xerxes_
The first four errors are because you created a global variable and a regular variable of "string".
The others, is line 355 the dialog line?

Donny: You can avoid it by chopping it up. Atleast, I have many times.
Yup, I did this in one of my dialog scripts, can't remember which one like but I remember having to format a string into itself a few times, stupid editor
Reply
#10

Yeah, it's a real hassle especially since the dialogs got added in. Pawno is in need of a update sometime soon anyway, hopefully they'll change that
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)