Command - 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: Command (
/showthread.php?tid=455905)
Command -
dorperez - 03.08.2013
Hey Guys,
I have /jobhelp command but when I type it,after the text says "/duty" it stops showing me the other commands..
pawn Код:
new toolong[256];
strcat(toolong,"You are a {516e06}Officer{FFFFFF}.\n\nYour job is to clear the city out of crime,protect and serve Los Santos citizents.\n");
strcat(toolong,"Faction Commands:\n");
strcat(toolong,"{516e06}/dooropen /gateopen /pdup /pddown /®adio /(f)action /(d)epartments /(m)egaphone\n");
strcat(toolong,"/mdc /warndriver ---------->/duty<--------- /dragtocar(/dtc) /arrest1 /arrest2 /arrest3 /arrest4 /arrest5 /arrest6\n");
strcat(toolong,"/tazer /frisk /take /gov /copuntie /removeroadblock(/rrb) /createroadblock(/crb) /showbadge /breathtest\n");
strcat(toolong,"/laseron /laseroff /lasercol /lasercolist /drag(type again to undrag) /cuff /uncuff{FFFFFF}\n");
ShowPlayerDialog(playerid,DIALOG_BODYGUARD,DIALOG_STYLE_MSGBOX,"Officer Faction:",toolong,"Close","");
Can someone help me plz ?
Re: Command -
Ballu Miaa - 03.08.2013
Your string size is less then the actual size required to show these commands. So you need to change it.
pawn Код:
new toolong[700]; // Calculate string length on all these commands and set it nearby.
strcat(toolong,"You are a {516e06}Officer{FFFFFF}.\n\nYour job is to clear the city out of crime,protect and serve Los Santos citizents.\n");
strcat(toolong,"Faction Commands:\n");
strcat(toolong,"{516e06}/dooropen /gateopen /pdup /pddown /®adio /(f)action /(d)epartments /(m)egaphone\n");
strcat(toolong,"/mdc /warndriver ---------->/duty<--------- /dragtocar(/dtc) /arrest1 /arrest2 /arrest3 /arrest4 /arrest5 /arrest6\n");
strcat(toolong,"/tazer /frisk /take /gov /copuntie /removeroadblock(/rrb) /createroadblock(/crb) /showbadge /breathtest\n");
strcat(toolong,"/laseron /laseroff /lasercol /lasercolist /drag(type again to undrag) /cuff /uncuff{FFFFFF}\n");
ShowPlayerDialog(playerid,DIALOG_BODYGUARD,DIALOG_STYLE_MSGBOX,"Officer Faction:",toolong,"Close","");
Re: Command -
dorperez - 03.08.2013
Thanks bro