Dialog update bug -
Shazwan - 08.09.2014
Hello i need some help with the dialog it doest show up. This is the script that i dont know what bug or missing.
This is the message
Код:
new ChangesDialog[][] =
{
"V3.5.83",
"Fix TR radio, add anims at /time, fix /h remove object, add /buydrink at club",
"fix buygun money transfer to biz safe, added scripter and mapper rank",
"V3.5.20",
"added /setcapping for /capture, Added TR Faction Duty Armor and HP",
"Changing Government Color to dark grey, changing /changes chat to dialog",
"V3.5.16",
"Removing TR unused vehicle and added change vehicle model",
"Fixed the /badge bug for TR Faction",
"V3.4.78",
"Added business system and few bug fixed"
};
This is the stock
Код:
stock ShowChangesDialog(playerid)
{
new dialog_string[5000];
format(dialog_string, sizeof(dialog_string), ChangesDialog);
ShowPlayerDialog(playerid, zzzz, DIALOG_STYLE_LIST, "Latest Version of SR:RP", dialog_string, "Okay", "");
return 1;
}
and this is the command.
Код:
CMD:changes(playerid, params[])
{
return ShowChangesDialog(playerid);
}
Re: Dialog update bug -
osman2571 - 08.09.2014
CMD:dialog(playerid, params[])
{
ShowPlayerDialog(playerid, zzzz, DIALOG_STYLE_LIST, "Latest Version of SR:RP", dialog_string, "Okay", ""); return
}
new ChangesDialog[11][11] =
{
"V3.5.83",
"Fix TR radio, add anims at /time, fix /h remove object, add /buydrink at club",
"fix buygun money transfer to biz safe, added scripter and mapper rank",
"V3.5.20",
"added /setcapping for /capture, Added TR Faction Duty Armor and HP",
"Changing Government Color to dark grey, changing /changes chat to dialog",
"V3.5.16",
"Removing TR unused vehicle and added change vehicle model",
"Fixed the /badge bug for TR Faction",
"V3.4.78",
"Added business system and few bug fixed"
};
Try
Re: Dialog update bug -
Shazwan - 08.09.2014
don't use stock?
Re: Dialog update bug -
Shazwan - 08.09.2014
error
error 048: array dimensions do not match
on this line
format(string, sizeof(string), ChangesDialog);
strcat(dialog_string, ChangesDialog);
Re: Dialog update bug -
Shazwan - 08.09.2014
Is this correct?
Код:
Here >> new ChangesDialog[][] =
{
"V3.5.83",
"Fix TR radio, add anims at /time, fix /h remove object, add /buydrink at club",
"fix buygun money transfer to biz safe, added scripter and mapper rank",
"V3.5.20",
"added /setcapping for /capture, Added TR Faction Duty Armor and HP",
"Changing Government Color to dark grey, changing /changes chat to dialog",
"V3.5.16",
"Removing TR unused vehicle and added change vehicle model",
"Fixed the /badge bug for TR Faction",
"V3.4.78",
"Added business system and few bug fixed"
};
Re: Dialog update bug -
Shazwan - 08.09.2014
umm it fix but, its not like in arrange like top to bottom
PHP код:
http://postimg.org/image/4t1xynz3t/
Re: Dialog update bug -
Shazwan - 08.09.2014
Yea it fixed thanks guys +rep