SA-MP Forums Archive
Error - 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 (/showthread.php?tid=253314)



Error - Janek17 - 05.05.2011

pawn Код:
C:\Users\Janek\Desktop\Smash Roleplay\gamemodes\smash.pwn(36217) : error 075: input line too long (after substitutions)
C:\Users\Janek\Desktop\Smash Roleplay\gamemodes\smash.pwn(36218) : error 037: invalid string (possibly non-terminated string)
C:\Users\Janek\Desktop\Smash Roleplay\gamemodes\smash.pwn(36218) : error 029: invalid expression, assumed zero
C:\Users\Janek\Desktop\Smash Roleplay\gamemodes\smash.pwn(36218) : error 017: undefined symbol "muudastat"
C:\Users\Janek\Desktop\Smash Roleplay\gamemodes\smash.pwn(36218) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

CODE:
pawn Код:
if(strcmp(cmd, "/muudaandmed", true) == 0 || strcmp(cmd, "/mддraandmed", true) == 0)
    {
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Muuda Andmeid", "KASUTA: /muudastat [MдngijaID/OsaNimest] [statkood] [vддrtus]/n|1 Level |2 Spawnelud |3 Uuenduspunkte |4 Mudel |5 Pangakonto |6 Telefon\n|7 Respektpunkte |8 Majavхti |9 Firmavхti |10 Annetustase/n|12 Det |13 Advokaat |14 Parandaja |15 Uudised |16 Autovaras |17 Narko/n|18 Hoor |19 Box |20 PassVхti |21 MasinaVхti1 |22 Masinavхti2 |23 Masinavхti3 |24 AAuto/n|25 Sugu |26 Tцц |27 Tццleping |28 Grupeering |29 Auaste |30 Haigekassa |31 Mдngutunnid", "Olgu","");
    return 1;
    }



Re: Error - Janek17 - 06.05.2011

Help?


Re: Error - Unknown1234 - 06.05.2011

just format and make d k like
separate like this
format(string)
format(string)
lazy to post exactly...


Re: Error - Biesmen - 06.05.2011

AV Janek?
Anyway, try this:
pawn Код:
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Muuda Andmeid", "KASUTA: /muudastat [MдngijaID/OsaNimest] [statkood] [vддrtus]/n \
|1 Level |2 Spawnelud |3 Uuenduspunkte |4 Mudel |5 Pangakonto |6 Telefon\n|7 Respektpunkte |8 Majavхti |9 Firmavхti |10 Annetustase/n \
|12 Det |13 Advokaat |14 Parandaja |15 Uudised |16 Autovaras |17 Narko/n \
|18 Hoor |19 Box |20 PassVхti |21 MasinaVхti1 |22 Masinavхti2 |23 Masinavхti3 |24 AAuto/n| \
25 Sugu |26 Tцц |27 Tццleping |28 Grupeering |29 Auaste |30 Haigekassa |31 Mдngutunnid"
, "Olgu","");
If it doesn't work, try this:
pawn Код:
new Message[3][128], string[455];
Message[0] = "KASUTA: /muudastat [MдngijaID/OsaNimest] [statkood] [vддrtus]/n \
|1 Level |2 Spawnelud |3 Uuenduspunkte |4 Mudel |5 Pangakonto |6 Telefon\n|7 Respektpunkte |8 Majavхti |9 Firmavхti |10 Annetustase/n"
;
Message[1] = "|12 Det |13 Advokaat |14 Parandaja |15 Uudised |16 Autovaras |17 Narko/n \
|18 Hoor |19 Box |20 PassVхti |21 MasinaVхti1 |22 Masinavхti2 |23 Masinavхti3 |24 AAuto/n|"
;
Message[2] = "25 Sugu |26 Tцц |27 Tццleping |28 Grupeering |29 Auaste |30 Haigekassa |31 Mдngutunnid";

format(string, 256, "%s%s%s", Message[0], Message[1], Message[2]);

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Muuda Andmeid", string, "Olgu", "");



Re: Error - Janek17 - 06.05.2011

Biesmen
Tnks dud!