#include <a_samp> #include <zcmd> #define DIALOG_BUY_WEAPONS 311 CMD:buyweapons (playerid, params[]) { ShowPlayerDialog(playerid, DIALOG_BUY_WEAPONS, DIALOG_STYLE_LIST, " ...:::Weapon-Shop:::... ", "{8080FF}Armour - 2000$\n{8080FF}Deagle - 1000$\n{8080FF}Shotgun - 2000$\n{8080FF}AK-47 - 2000$\n{8080FF}9mm - 2000$\n{8080FF}M4 - 2000$\n{8080FF}Spass12 - 2000$\n{8080FF}Sawn-Off - 2000$\n{8080FF}Grenade - 2000$\n{8080FF}Uzi - 2000$\n{8080FF}MP5 - 2000$\n", "Buy", "Cancel"); return 1; }
C:\Users\User\Documents\SA-MP script files\samp windows server\samp037_svr_R2-1-1_win32\filterscripts\Untitled3.pwn(7) : error 075: input line too long (after substitutions) C:\Users\User\Documents\SA-MP script files\samp windows server\samp037_svr_R2-1-1_win32\filterscripts\Untitled3.pwn(8) : error 037: invalid string (possibly non-terminated string) C:\Users\User\Documents\SA-MP script files\samp windows server\samp037_svr_R2-1-1_win32\filterscripts\Untitled3.pwn(8) : error 029: invalid expression, assumed zero C:\Users\User\Documents\SA-MP script files\samp windows server\samp037_svr_R2-1-1_win32\filterscripts\Untitled3.pwn(8) : error 029: invalid expression, assumed zero C:\Users\User\Documents\SA-MP script files\samp windows server\samp037_svr_R2-1-1_win32\filterscripts\Untitled3.pwn(8) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
I would suggest using the new DIALOG_STYLE_TABLIST, https://sampwiki.blast.hk/wiki/Dialog_Styles
|
new string[128], desstring[500];
// Then Using format
format(string, sizeof(string),"...:::Weapon-Shop:::... \n\n");
// Using strcat
strcat(desstring, string);
format(string, sizeof(string),"{8080FF}Armour\t-\t2000$\n");
strcat(desstring, string);
// And so on......
// Then use ShowPlayerDialog like this
ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_LIST,"Weapons Shop", desstring,"Buy", "Close");
Use a string for format and a destination string. Like
PHP код:
Thank You. |