PDA

View Full Version : String help


Akcent_Voltaj
12/08/2012, 11:40 PM
i cant see string completly....

if(strcmp(cmd, "/help", true) == 0)
{
new coordsstring[800], helpdialogstring[900];
if(IsPlayerConnected(playerid))
{
format( helpdialogstring, sizeof( helpdialogstring ),"{278227}:: SERVER :: /reguli /buylevel /forum\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{E60000}:: ACCOUNT :: /stats /upgrade /changepass /leaders\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{FFA31A}:: GENERAL :: /pay /vw /charity /papagal /time /buy /unrentcar /givekey /switchkey /id /drink /anim /showlicenses /clothes\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: GENERAL :: /resetupgrades /buygun /tpevent /lock /skill /licenses /lotto\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{FFFF00}:: GENERAL :: /report /casca /admins /centura /job /accepta /eject /moneda /usedrugs /fill /fillcar /service /clear\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{E60000}:: CHAT :: /whisper /cw /ooc /striga /close /local /b /advertise /joburile /me /togooc /tognews /togfam /togwhisper\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: FACTIONS :: /family /leaders /cabinet /enter /exit /togfam\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{278227}:: BANCA :: /balance /withdraw /deposit /wiretransfer /interest\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{ACFF05}:: CAR :: /muzica /capota /portbagaj\n");strcat(coordsstring,helpdialogstring);
if(PlayerInfo[playerid][pJob] == 1)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /find\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 2)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /free\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 3)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /sex\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 4)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /selldrugs\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 5)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /dropcar\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pMember] == 9)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /paper /papers /live /news [text]\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 8)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /guard\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 9)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /materials /sellgun /givemats\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 17)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /duty /sellpizza\n");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 19)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /collect");strcat(coordsstring,helpdialogstring);
}
else if(PlayerInfo[playerid][pJob] == 15)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: JOB :: /papers /bring /deliver\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: Taxi Company :: /radio /fare\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: S.M.U.R.D :: (/r)adio (/d)epartments /heal /duty\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: MAFIA :: (/f)amily /tie /untie /leaders /team /fmats /fdeposit\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pLeader] == 7)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: Primar :: /settax /givetax\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: The Yeperti :: /leaders /cabinet /team\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: HITMAN :: /family /hundercover /cabinet /portable\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: TCC :: /repair /refill /tc\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 16|| PlayerInfo[playerid][pLeader] == 16)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{CCB3FF}:: La TIGANI :: /cabinet /family\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{247BFF}:: ADMIN :: /admin /ahelp\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* POLITIA RO * (/r)adio (/d)epartments(/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* POLITIA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /aswat /dswat /swat\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* POLITIA RO * /copuntie /backup /backupclear /checkbelt /jaillist /move1 ( 1 , 2 , 3 )\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* POLITIA RO * /drag /roadblock /crb /rub /rrball /showbadge\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* S.R.I RO * (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /wanted /cuff /tazer\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* S.R.I RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* S.R.I RO * /copuntie /crb /backup /backupclear /jaillist /arrest /move1 ( 1 , 2 , 3 ) /drag\n");strcat(coordsstring,helpdialogstring);
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* ARMATA RO * (/r)adio /crb (/d)epartments (/m)egaphone (/su)spect /mdc /a(rrest)1,2,3 /wanted /cuff /tazer\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* ARMATA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /jaillist /arrest /drag\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* ARMATA RO * /move1 ( 1 , 2 , 3 )\n");
}
format( helpdialogstring, sizeof( helpdialogstring ),"{E60000}:: OTHER :: /cellphonehelp /househelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp\n");strcat(coordsstring,helpdialogstring);
}
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Ajutor",coordsstring,"Inchide","");
return 1;
}

i only see this

format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* POLITIA RO * (/r)adio (/d)epartments(/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer\n");strcat(coordsstring,helpdialogstring);
format( helpdialogstring, sizeof( helpdialogstring ),"{000099}* POLITIA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /aswat /dswat /swat\n");strcat(coordsstring,helpdialogstring);

2 lines but its 4 lines..i cant see all of the lines of help and police cmds..i sow on a server 15 lines.

Sandiel
13/08/2012, 12:01 AM
new coordsstring[128], helpdialogstring[128];
I think the issue is that you are defining way more cellules than you are using, perhaps.

Akcent_Voltaj
13/08/2012, 12:06 AM
no,i see a 2 lines of help...

Sandiel
13/08/2012, 12:08 AM
Why do you use the format(); function anyways, just check for job/faction/rank and just SendClientMessage();
It's pointless really...

FalconX
13/08/2012, 12:11 AM
if(strcmp(cmd, "/help", true) == 0)
{
helpdialogstring[900];

format( helpdialogstring, sizeof( helpdialogstring ),"{278227}:: SERVER :: /reguli /buylevel /forum\n" );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{E60000}:: ACCOUNT :: /stats /upgrade /changepass /leaders\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{FFA31A}:: GENERAL :: /pay /vw /charity /papagal /time /buy /unrentcar /givekey /switchkey /id /drink /anim /showlicenses /clothes\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GENERAL :: /resetupgrades /buygun /tpevent /lock /skill /licenses /lotto\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{FFFF00}:: GENERAL :: /report /casca /admins /centura /job /accepta /eject /moneda /usedrugs /fill /fillcar /service /clear\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{E60000}:: CHAT :: /whisper /cw /ooc /striga /close /local /b /advertise /joburile /me /togooc /tognews /togfam /togwhisper\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: FACTIONS :: /family /leaders /cabinet /enter /exit /togfam\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{278227}:: BANCA :: /balance /withdraw /deposit /wiretransfer /interest\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{ACFF05}:: CAR :: /muzica /capota /portbagaj\n", helpdialogstring );

switch( PlayerInfo[playerid][pJob] )
{
case 1:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /find\n", helpdialogstring );
}
case 2:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /free\n", helpdialogstring );
}
case 3:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /sex\n", helpdialogstring );
}
case 4:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /selldrugs\n", helpdialogstring );
}
case 5:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /dropcar\n", helpdialogstring );
}
case 9:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /materials /sellgun /givemats\n", helpdialogstring );
}
case 15:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /papers /bring /deliver\n", helpdialogstring );
}
case 17:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /duty /sellpizza\n", helpdialogstring );
}
case 19:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /collect", helpdialogstring );
}
}

switch( PlayerInfo[playerid][pMember] )
{
case 1:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * (/r)adio (/d)epartments(/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /aswat /dswat /swat\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * /copuntie /backup /backupclear /checkbelt /jaillist /move1 ( 1 , 2 , 3 )\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * /drag /roadblock /crb /rub /rrball /showbadge\n", helpdialogstring );
}
case 2:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* S.R.I RO * (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /wanted /cuff /tazer\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* S.R.I RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* S.R.I RO * /copuntie /crb /backup /backupclear /jaillist /arrest /move1 ( 1 , 2 , 3 ) /drag\n", helpdialogstring );
}
case 3:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* ARMATA RO * (/r)adio /crb (/d)epartments (/m)egaphone (/su)spect /mdc /a(rrest)1,2,3 /wanted /cuff /tazer\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* ARMATA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /jaillist /arrest /drag\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* ARMATA RO * /move1 ( 1 , 2 , 3 )\n");
}
case 4:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: S.M.U.R.D :: (/r)adio (/d)epartments /heal /duty\n", helpdialogstring );
}
case 5:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: MAFIA :: (/f)amily /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 6:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: MAFIA :: (/f)amily /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 8:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: The Yeperti :: /leaders /cabinet /team\n", helpdialogstring );
}
case 9:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: JOB :: /paper /papers /live /news [text]\n", helpdialogstring );
}
case 10:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: Taxi Company :: /radio /fare\n", helpdialogstring );
}
case 11:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 12:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 13:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: HITMAN :: /family /hundercover /cabinet /portable\n", helpdialogstring );
}
case 14:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 15:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: TCC :: /repair /refill /tc\n", helpdialogstring );
}
case 16:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: La TIGANI :: /cabinet /family\n", helpdialogstring );
}
}

switch( PlayerInfo[playerid][pLeader] )
{
case 1:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * (/r)adio (/d)epartments(/m)egaphone (/su)spect /mdc /arrest /duty /wanted /cuff /tazer\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /aswat /dswat /swat\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * /copuntie /backup /backupclear /checkbelt /jaillist /move1 ( 1 , 2 , 3 )\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* POLITIA RO * /drag /roadblock /crb /rub /rrball /showbadge\n", helpdialogstring );
}
case 2:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* S.R.I RO * (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /wanted /cuff /tazer\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* S.R.I RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* S.R.I RO * /copuntie /crb /backup /backupclear /jaillist /arrest /move1 ( 1 , 2 , 3 ) /drag\n", helpdialogstring );
}
case 3:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* ARMATA RO * (/r)adio /crb (/d)epartments (/m)egaphone (/su)spect /mdc /a(rrest)1,2,3 /wanted /cuff /tazer\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* ARMATA RO * /frisk /take /ticket (/gov)ernment /deliver /camera /ram /jaillist /arrest /drag\n", helpdialogstring );
format( helpdialogstring, sizeof( helpdialogstring ),"%s{000099}* ARMATA RO * /move1 ( 1 , 2 , 3 )\n");
}
case 4:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: S.M.U.R.D :: (/r)adio (/d)epartments /heal /duty\n", helpdialogstring );
}
case 5:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: MAFIA :: (/f)amily /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 6:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: MAFIA :: (/f)amily /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 7:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: Primar :: /settax /givetax\n", helpdialogstring );
}
case 8:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: The Yeperti :: /leaders /cabinet /team\n", helpdialogstring );
}
case 10:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: Taxi Company :: /radio /fare\n", helpdialogstring );
}
case 11:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 12:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 13:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: HITMAN :: /family /hundercover /cabinet /portable\n", helpdialogstring );
}
case 14:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n", helpdialogstring );
}
case 15:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: TCC :: /repair /refill /tc\n", helpdialogstring );
}
case 16:
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{CCB3FF}:: La TIGANI :: /cabinet /family\n", helpdialogstring );
}
}

if (PlayerInfo[playerid][pAdmin] >= 1)
{
format( helpdialogstring, sizeof( helpdialogstring ),"%s{247BFF}:: ADMIN :: /admin /ahelp\n", helpdialogstring );
}
format( helpdialogstring, sizeof( helpdialogstring ),"%s{E60000}:: OTHER :: /cellphonehelp /househelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp\n", helpdialogstring );

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Ajutor",coordsstring,"Inchide","");
return 1;
}


I haven't tested it but worth a try :)

Akcent_Voltaj
13/08/2012, 12:19 AM
mno no work.. test it please..it doesent work..

Akcent_Voltaj
13/08/2012, 12:23 AM
this is my official cmd..

if(strcmp(cmd, "/help", true) == 0)
{
new helpdialogstring[1024];
if(IsPlayerConnected(playerid))
{
strcat(helpdialogstring,"{278227}:: SERVER :: /reguli /buylevel/forum\n");
strcat(helpdialogstring,"{E60000}:: ACCOUNT :: /stats /upgrade /changepass /leaders\n");
strcat(helpdialogstring,"{FFA31A}:: GENERAL :: /pay /vw /charity /papagal /time /buy /unrentcar /givekey /switchkey /id /drink /anim /showlicenses /clothes\n");
strcat(helpdialogstring,"{CCB3FF}:: GENERAL :: /resetupgrades /buygun /tpevent /lock /skill /licenses /lotto\n");
strcat(helpdialogstring,"{FFFF00}:: GENERAL :: /report /casca /admins /centura /job /accept /eject /moneda /usedrugs /fill /fillcar /service /clear\n");
strcat(helpdialogstring,"{E60000}:: CHAT :: /whisper /cw /ooc /striga /close /local /b /advertise /joburile /me /togooc /tognews /togfam /togwhisper\n");
strcat(helpdialogstring,"{CCB3FF}:: FACTIONS :: /family /leaders /cabinet /enter /exit /togfam\n");
strcat(helpdialogstring,"{278227}:: BANCA :: /balance /withdraw /deposit /wiretransfer /interest\n");
strcat(helpdialogstring,"{ACFF05}:: CAR :: /muzica /capota /portbagaj\n");
if(PlayerInfo[playerid][pJob] == 1) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /find\n"); }
else if(PlayerInfo[playerid][pJob] == 2) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /free\n"); }
else if(PlayerInfo[playerid][pJob] == 3) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /sex\n"); }
else if(PlayerInfo[playerid][pJob] == 4) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /selldrugs\n"); }
else if(PlayerInfo[playerid][pJob] == 5) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /dropcar\n"); }
else if(PlayerInfo[playerid][pMember] == 9) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /paper /papers /live /news [text]\n"); }
else if(PlayerInfo[playerid][pJob] == 8) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /guard\n"); }
else if(PlayerInfo[playerid][pJob] == 9) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /materials /sellgun /givemats\n"); }
else if(PlayerInfo[playerid][pJob] == 11) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /start /stop\n"); }
else if(PlayerInfo[playerid][pJob] == 17) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /duty /sellpizza\n"); }
else if(PlayerInfo[playerid][pJob] == 19) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /collect"); }
else if(PlayerInfo[playerid][pJob] == 15) {
strcat(helpdialogstring,"{CCB3FF}:: JOB :: /papers /bring /deliver\n"); }
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
strcat(helpdialogstring,"{CCB3FF}:: Taxi Company :: /radio /fare\n");
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
strcat(helpdialogstring,"{CCB3FF}:: S.M.U.R.D :: (/r)adio (/d)epartments /heal /duty\n");
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
strcat(helpdialogstring,"{CCB3FF}:: MAFIA :: (/f)amily /tie /untie /leaders /team /fmats /fdeposit\n");
}
if (PlayerInfo[playerid][pLeader] == 7)
{
strcat(helpdialogstring,"{CCB3FF}:: Primar :: /settax /givetax\n");
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
{
strcat(helpdialogstring,"{CCB3FF}:: The Yeperti :: /leaders /cabinet /team\n");
}
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
{
strcat(helpdialogstring,"{CCB3FF}:: GANG :: /family /tie /untie /leaders /team /fmats /fdeposit\n");
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
strcat(helpdialogstring,"{CCB3FF}:: HITMAN :: /family /hundercover /cabinet /portable\n");
}
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
{
strcat(helpdialogstring,"{CCB3FF}:: TCC :: /repair /refill /tc\n");
}
if (PlayerInfo[playerid][pMember] == 16|| PlayerInfo[playerid][pLeader] == 16)
{
strcat(helpdialogstring,"{CCB3FF}:: La TIGANI :: /cabinet /family\n");
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(helpdialogstring,"{247BFF}:: ADMIN :: /admin /ahelp\n");
}
strcat(helpdialogstring,"{E60000}:: OTHER :: /cellphonehelp /househelp /renthelp /businesshelp /leaderhelp /fishhelp /cookhelp /irchelp\n");
}
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Help",helpdialogstring,"Inchide","");
return 1;
}

Akcent_Voltaj
13/08/2012, 12:37 AM
anyone?? :D

Akcent_Voltaj
13/08/2012, 12:16 PM
what can i do please help!