SA-MP Forums Archive
Error, Cannot find what's the problem with the code. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error, Cannot find what's the problem with the code. (/showthread.php?tid=116354)



Error, Cannot find what's the problem with the code. - Eazy_Efolife - 28.12.2009

The Code is:
Код:
ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST,"Buy Outfit","Black Male /w Blue shirt & Cargo Pants\nBlack Male /w Gas Mask on face\nBlack male /w White Sleeves and Read & Black Jersey\nShirtless Black man /w Read Pants and hat\nBlack Male /w Yellow shirt\nWhite Male with Green Shirt\nBlack male /w White shoes\nBlack Male with Orange Jersey\nAsian Man (looks like Yao Ming)\nBlack Male (Drug Dealer in SP)\nSpanish looking male /w White shirt\nSpanish Man /w Glasses\nWhite Male /w Brown Shirt\nItalian Fat Male\nWhite Male /w Hoodie\nSpanish Man (Drug Dealer in SP)\nBlack Male /w Black vest & White Sleeves\nCluckin Bell Man\nClown\nWhite Male /w Jogging Outfit\nWhite Male /w Hat Backwards","Buy","Cancel");
(( Pastebin verison - http://pastebin.com/m4afe4546 ))

The errors im getting are:

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP Scripting\gamemodes\SWRP.pwn(3765) : error 075: input line too long (after substitutions)
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP Scripting\gamemodes\SWRP.pwn(3766) : error 037: invalid string (possibly non-terminated string)
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP Scripting\gamemodes\SWRP.pwn(3766) : error 017: undefined symbol "Black"
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP Scripting\gamemodes\SWRP.pwn(3766) : error 017: undefined symbol "Male"
C:\Program Files\Rockstar Games\GTA San Andreas\SA-MP Scripting\gamemodes\SWRP.pwn(3766) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
(( Paste bin Verison - http://pastebin.com/m4f58e555 ))

I don't know what's wrong with the code. It looks like nothing is wrong at all.


Re: Error, Cannot find what's the problem with the code. - Doppeyy - 28.12.2009

Nvm i saw it wrong.

[Doppeyy


Re: Error, Cannot find what's the problem with the code. - dice7 - 28.12.2009

Try this
pawn Код:
new array[633];
    strins(array, "Black Male /w Blue shirt & Cargo Pants\nBlack Male /w Gas Mask on face\nBlack male /w White Sleeves", 633);
    strins(array, "and Read & Black Jersey\nShirtless Black man /w Read Pants and hat\nBlack Male /w Yellow shirt\nWhite M", 633);
    strins(array, "ale with Green Shirt\nBlack male /w White shoes\nBlack Male with Orange Jersey\nAsian Man (looks like Y", 633);
    strins(array, "ao Ming)\nBlack Male (Drug Dealer in SP)\nSpanish looking male /w White shirt\nSpanish Man /w Glasses\n", 633);
    strins(array, "White Male /w Brown Shirt\nItalian Fat Male\nWhite Male /w Hoodie\nSpanish Man (Drug Dealer in SP)\nBla", 633);
    strins(array, "ck Male /w Black vest & White Sleeves\nCluckin Bell Man\nClown\nWhite Male /w Jogging Outfit\nWhite Mal", 633);
    strins(array, "e /w Hat Backwards", 633);
  ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST,"Buy Outfit",array,"Buy","Cancel");



Re: Error, Cannot find what's the problem with the code. - Eazy_Efolife - 28.12.2009

Quote:
Originally Posted by dice7
Try this
pawn Код:
new array[633];
    strins(array, "Black Male /w Blue shirt & Cargo Pants\nBlack Male /w Gas Mask on face\nBlack male /w White Sleeves", 633);
    strins(array, "and Read & Black Jersey\nShirtless Black man /w Read Pants and hat\nBlack Male /w Yellow shirt\nWhite M", 633);
    strins(array, "ale with Green Shirt\nBlack male /w White shoes\nBlack Male with Orange Jersey\nAsian Man (looks like Y", 633);
    strins(array, "ao Ming)\nBlack Male (Drug Dealer in SP)\nSpanish looking male /w White shirt\nSpanish Man /w Glasses\n", 633);
    strins(array, "White Male /w Brown Shirt\nItalian Fat Male\nWhite Male /w Hoodie\nSpanish Man (Drug Dealer in SP)\nBla", 633);
    strins(array, "ck Male /w Black vest & White Sleeves\nCluckin Bell Man\nClown\nWhite Male /w Jogging Outfit\nWhite Mal", 633);
    strins(array, "e /w Hat Backwards", 633);
  ShowPlayerDialog(playerid,15, DIALOG_STYLE_LIST,"Buy Outfit",array,"Buy","Cancel");
Thanks