[DIALOG BOXES] VIP Menu - 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)
+--- Thread: [DIALOG BOXES] VIP Menu (
/showthread.php?tid=584950)
[DIALOG BOXES] VIP Menu -
BarFix - 09.08.2015
Код:
CMD:viphelp(playerid, params[])
{
if( PlayerInfo[playerid][pVIP] >= 0){
new string[128];
strcat(string, "Access To Ruby Section On The Forum, Access To Sapphire Section On The Forum, Access To Diamond Section On The Forum\n");
strcat(string, "Ruby Tag in the Forum/Teamspeak., Sapphire Tag in the Forum/Teamspeak, Diamond Tag in the Forum/Teamspeak\n");
strcat(string, "Ability to get a free Gender swap!, You Get Given 75k!, You Get Given 75k!\n");
strcat(string, "One Free House Move! , Abily to All Ruby features!, Abily to All Ruby features!\n");
strcat(string, "One Free Car! , A Free House And Business Move!, A Free House And Business Move!\n");
strcat(string, " , 2 Free Cars! (Of Your Choice), FREE Armor + HP in the VIP Lounge!\n");
strcat(string, " , FREE Armor + HP in the VIP Lounge!, 5 Free Cars! (Of Your Choice)\n");
strcat(string, " , , FREE JAIL PASS!\n");
ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "RUBY SAPPHIRE DIAMOND", string, "OK", "");
}
return 1;
}
ANY IDEA WHY THIS COMES OUT LIKE THIS...
Re: [DIALOG BOXES] VIP Menu -
jlalt - 09.08.2015
PHP код:
CMD:viphelp(playerid, params[])
{
if( PlayerInfo[playerid][pVIP] >= 0){
new string[990];
strcat(string, "Access To Ruby Section On The Forum, Access To Sapphire Section On The Forum, Access To Diamond Section On The Forum\n");
strcat(string, "Ruby Tag in the Forum/Teamspeak., Sapphire Tag in the Forum/Teamspeak, Diamond Tag in the Forum/Teamspeak\n");
strcat(string, "Ability to get a free Gender swap!, You Get Given 75k!, You Get Given 75k!\n");
strcat(string, "One Free House Move! , Abily to All Ruby features!, Abily to All Ruby features!\n");
strcat(string, "One Free Car! , A Free House And Business Move!, A Free House And Business Move!\n");
strcat(string, " , 2 Free Cars! (Of Your Choice), FREE Armor + HP in the VIP Lounge!\n");
strcat(string, " , FREE Armor + HP in the VIP Lounge!, 5 Free Cars! (Of Your Choice)\n");
strcat(string, " , , FREE JAIL PASS!\n");
ShowPlayerDialog(playerid, 44, DIALOG_STYLE_MSGBOX, "RUBY SAPPHIRE DIAMOND", string, "OK", "");
}
return 1;
}
Re: [DIALOG BOXES] VIP Menu -
TheRaGeLord - 09.08.2015
If you want to arrange text in colums then use \t
example:
PHP код:
strcat(string, "Access To Ruby Section On The Forum \t Access To Sapphire Section On The Forum \t Access To Diamond Section On The Forum\n");