SA-MP Forums Archive
[HElP]Need Help With /credits and /rules commands - 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: [HElP]Need Help With /credits and /rules commands (/showthread.php?tid=457771)



[HElP]Need Help With /credits and /rules commands - donhu789 - 13.08.2013

Код HTML:
CMD:rules(playerid,params[]){
    #pragma unused params
   	ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{46BEE6}YS Gaming Server Rules:", "1. No Hacks, Because Hacks Are Not Allowed And Will Get Yourself Banned! \n2. No Deathmatching Outside Of Designated DM Areas \n3. Respect Players And Staff \n4. No Advertising Other Servers Here! \n5. No Flaming,Trolling,Argueing Or Disrespecting Other Players! \n6. Do Whatever You Want, But It Must Be Inside The Court Of These Rules! \n Consider Yourself Warned!\n Dont Attack Adminss", "I Agree", "I Disagree");
	return 1;
}
I need To Make It Bigger If i use more \n \n \n is turn To Line Input Solong :P can Anyone Help my


Код HTML:
CMD:credits(playerid,params[]){
    #pragma unused params
   	ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{46BEE6}YS Server Credits:", "1.Orginal gamemode Was Made By John,Jennifer,Errore \n2.The Commands Of Player And admins Was Made By John,Jennifer  \n3.Some of the Code By The Permission Of SA:MP Community \n4. Was Alowed By Sa:Mp Various Members. \n6.Play Class,Weapons was Choice By John And [YS]Admins  \n7.Vehicle PlaceMent By MoNeYPiMp. \n8.Young Stuner Beta Tester Is: \n John,Jennifer,Aryanoos,Nafiz ", "I Agree", "I Disagree");
	return 1;
}
I want To Do the Same With Rules to Bigger Beter becuz style put in Is Not For big can you help my Guy if Help Thanks So So So Much :P


Re: [HElP]Need Help With /credits and /rules commands - donhu789 - 13.08.2013

i want to make like this but how


Quote:

CMD:credits(playerid,params[]){
#pragma unused params
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{46BEE6}YS Server Credits:", "1.Orginal gamemode Was Made By John,Jennifer,Errore \n2.The Commands Of Player And admins Was Made By John,Jennifer \n3.Some of the Code By The Permission Of SA:MP Community \n4. Was Alowed By Sa:Mp Various Members. \n6.Play Class,Weapons was Choice By John And [YS]Admins \n7.Vehicle PlaceMent By MoNeYPiMp. \n8.Young Stuner Beta Tester Is: \n John,Jennifer,Aryanoos,Nafiz ", "I Agree", "I Disagree");
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{46BEE6}YS Server Credits:", "1.Orginal gamemode Was Made By John,Jennifer,Errore \n2.The Commands Of Player And admins Was Made By John,Jennifer \n3.Some of the Code By The Permission Of SA:MP Community \n4. Was Alowed By Sa:Mp Various Members. \n6.Play Class,Weapons was Choice By John And [YS]Admins \n7.Vehicle PlaceMent By MoNeYPiMp. \n8.Young Stuner Beta Tester Is: \n John,Jennifer,Aryanoos,Nafiz ", "I Agree", "I Disagree");
return 1;
return 1;
}

i want to Make it Biger Biger biger not in same line


Re: [HElP]Need Help With /credits and /rules commands - Lуs - 13.08.2013

Take a look at the strcat function.


Re: [HElP]Need Help With /credits and /rules commands - Zex Tan - 13.08.2013

Use strcat next time.

pawn Код:
CMD:credits(playerid,params[])
{
    new string[500];
    string = "1.Orginal gamemode Was Made By John,Jennifer,Errore\n";
    strcat(string, "2.The Commands Of Player And admins Was Made By John,Jennifer\n\
    3.Some of the Code By The Permission Of SA:MP Community\n\
    4.Was Alowed By Sa:Mp Various Members.\n\
    6.Play Class,Weapons was Choice By John And [YS]Admins\n\
    7.Vehicle PlaceMent By MoNeYPiMp.\n\
    8.Young Stuner Beta Tester Is: \n John,Jennifer,Aryanoos,Nafiz"
);
    ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "{46BEE6}YS Server Credits:", string, "I Agree", "I Disagree");
    return 1;
}



Re: [HElP]Need Help With /credits and /rules commands - donhu789 - 13.08.2013

But how i can Add more and more