error 027: invalid character constant
#1

pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Weapons", "\nBrass Knucles \nGolf Club \nNite Stick \nKnife \nBaseball Bat \nShovel \nPoolCue \nKatana \nChainsaw \nDildo \nSM Vib \nL Vib\nSI Vib \nFlowers \nCane \nGrenades \nTearGas \nMolovs \n9mm \nS9MM \nDesertEagle \nShotgun \nSawnoff \nSpas12 \nUZI \nmp5 \nak47 \nm4 \ntec9 \nRifle \SRifle \nRPG \nHeatSeaker \nFlameTh \nMinigun \nSatchel \nDet \nSpray \nFireExt\nCamera \nNightV \nThVis \nPara", "Ok!", "Cancel");
WTF?
Reply
#2

I believe its to long bro.
Reply
#3

Damn :/

But if it was too long,Pawno will return me "input line too long" or similar :/
Reply
#4

Make them in separate dialogs with a button saying 'Next' and you add other dialog etc because your code is perfect besides that.
Reply
#5

Its because "Weapons" isnt a dialog style you need to add dialog id then style. eg
pawn Код:
ShowPlayerDialog(playerid, DEPOSIT_DIALOG, DIALOG_STYLE_INPUT,
The compiler is expecting a constant as the third param not a string.

EDIT: My bad missed the number 2
Reply
#6

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Its because "Weapons" isnt a dialog style you need to add dialog id then style. eg
pawn Код:
howPlayerDialog(playerid, DEPOSIT_DIALOG, DIALOG_STYLE_INPUT,
The compiler is expecting a constant as the third param not a string.
It's good or im blind. Look.
pawn Код:
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST,
// playerid = player paramerter
// 2 = dialogid
// DIALOG_STYLE_LIST = list dialog style
First playerid then id then style THEN the message string.
Reply
#7

Its not because the lines too long its this code in the list "\SRifle" / s isnt a charachter constant.
Reply
#8

pawn Код:
\nRifle \SRifle
To
pawn Код:
\nRifle \nRifle
Reply
#9

Ah right, didn't notise that.
Reply
#10

I have 2 different rifle.

1st is SRifle = Sniper Rifle
2nd is Country Rifle

..

EDIT: NVM,fixed.

Thanks all!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)