new Label[][] = { {1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."}, {1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."}, {1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."}, {1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."}, {1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."}, }; CMD:label(playerid) { new index = labelStatus[playerid]; // Intro: SendClientMessage(playerid, -1, "Intro is: %s ", ???); // Description: ShowPlayerDialog(playerid,10000,DIALOG_STYLE_MSGBOX,"INFO:",???,"Ok",""); // First Value: GivePlayerMoneyEx(playerid, ???); return 1; }
enum LabelEnum{
Cash,
Title[10],
MainBody[200]
};
new Label[5][LabelEnum] = {
{1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."},
{1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."},
{1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."},
{1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."},
{1000, "Intro", "Complete text description, with examples\nNew lines and everything to explain."},
};
CMD:label(playerid) {
new i = labelStatus[playerid],
s[90];
format(s,90,"Intro is: %s",Label[i][Title]);
SendClientMessage(playerid, -1, s);
format(s,90,"Intro is: %s",Label[i][MainBody]);
SendClientMessage(playerid, -1, s);
GivePlayerMoneyEx(playerid, Label[i][Cash]);
return 1;
}
PHP код:
|