Command
#1

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 ?
Reply
#2

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","");
Reply
#3

Thanks bro
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)