27.06.2013, 16:05
Hello guys, I've two question, so here I've this code:
And I know something's missing but I can't find what since I looked everywhere and I didn't see WHAT is actually missing..
So I've this error messages:
The OnDialogResponse has no error lines, and here's the code itself..
So I am not getting what's wrong with my script lol.
2nd question;
How can I use colors at any DIALOG_STYLE?
Thanks ahead.
pawn Код:
CMD:shop(playerid, params[]); //zcmd defined.
{
ShowPlayerDialog(playerid, DIALOG_WEPS, DIALOG_STYLE_LIST, "TEST", "AK-47\nM4\nMP5", "TEST", "TEST");
return 1;
}
So I've this error messages:
pawn Код:
C:\Users\user\Desktop\HZ-Gaming\gamemodes\Hazard.pwn(100) : error 055: start of function body without function header
C:\Users\user\Desktop\HZ-Gaming\gamemodes\Hazard.pwn(102) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
{
if(dialogid == 1)
{
if(response)
{
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid,24, 9999999);
}
case 1:
{
GivePlayerWeapon(playerid, 31, 500);
}
case 2:
{
GivePlayerWeapon(playerid, 29 ,9999999);
}
}
}
}
return 1;
}
2nd question;
How can I use colors at any DIALOG_STYLE?
Thanks ahead.