[Pomoc] /help admin

Započeo Harrson, April 03, 2013, 19:43:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Godfather Edit
Detaljan opis problema: Imam /help admin i sad je problem dodje mi kad to ukucam SERVER: Unkown Command. (kasnije nmg da koristim druge komande)
Problem je string koji da uzmem(broj)?
Dio skripte:          if(strcmp(x_nr, "admin", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new string1[500], string2[500], string3[500], string4[500], string5[500], string6[500], string7[500], adm[999];
strcat(string1, "");
strcat(string2, "");
           strcat(string3, "");
strcat(string4, "");
strcat(string5, "");
               strcat(string6, "");
               strcat(string7, "");
format(adm, 999, "%s%s%s%s%s%s%s", string1, string2, string3, string4, string5, string6, string7);
ShowPlayerDialog(playerid, 97, DIALOG_STYLE_MSGBOX, "ADMIN KOMANDE", adm, "Zatvori", "");

Neke slike/video za lakse dobivanje pomoci(neobavezno)://




}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "{F3FF02}Duznost | {ffffff}/aon,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 1 | {ffffff}/ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /spec /checkweapons,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 1 | {ffffff}/fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn /aodg /afk,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
strcat(info, "{F3FF02}Admin Level 2 | {ffffff}/skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 2 | {ffffff}/gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace  /gotohell\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
strcat(info, "{F3FF02}Admin Level 3 | {ffffff}/cnnn /fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap,\n", sizeof(info));
        strcat(info, "{F3FF02}Admin Level 3 | {ffffff}/mark /gotomark /gethere /oldcar /gotocar /getcar /setage, \n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 3 | {ffffff}/respawnallcars /respawnrentbikes /respawnrentcars,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
strcat(info, "{F3FF02}Admin Level 4 | {ffffff}/pban /fixveh /mole /logout /logoutpl /logoutall /asellhouse /aprodajfirmu /aprodajsfirmu /setchamp /mk,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 4 | {ffffff}/destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban /unbanip,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
strcat(info, "{F3FF02}Head Admin | {ffffff}/weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance /sbizentrance /asellcar,\n", sizeof(info));
strcat(info, "{F3FF02}Head Admin | {ffffff}/givemoney /givegun /crash /changename /houseentrance /housexit /tod /startlotto /setstat /money /jetpack,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1340)
{
strcat(info, "{F3FF02}Vlasnik | {ffffff}/givemoney /givegun /veh /fixveh /givenos \n", sizeof(info));
strcat(info, "{F3FF02}Vlasnik | {ffffff}/gmx /apark /agl /agivedrugs /agivemats \n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "{F3FF02}========================================================================================================\n\n", sizeof(info));
}
ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "{FFFFFF}LifeZone RolePlay Admin Help", info, "Uredu", "");
}
return 1;
    }


Stavi ovako!
RESPECT: Blaeks, Yui_Sang, Gagi, Kapetan Husein, Luksa, Slay, Denis_Lapi, Zoran(Dude)

Programski jezici koje koristim: C, C#, Visual Basic, HTML, CSS, PHP (tek ucim).


+to je zbog prevelikog stringa, znaci nikad ne idi preko 1999 striga u dijalozima

Citat: |LZ| Bugi poslato April 03, 2013, 19:52:10 POSLE PODNE
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "{F3FF02}Duznost | {ffffff}/aon,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 1 | {ffffff}/ban /slap /goto /a (/ao)oc /name /setskin /ajail /freeze /spec /checkweapons,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 1 | {ffffff}/fly /check /setint /setvw /mute /kick /kickres /masked /unfreeze /learn /aodg /afk,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 2)
{
strcat(info, "{F3FF02}Admin Level 2 | {ffffff}/skydive /noooc /setteam /bigears /respawnthiscar(/rtc)  /setjob /update,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 2 | {ffffff}/gotols /gotolv /gotosf /gotoburg /gotobolnica /gotocross /gotorace  /gotohell\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 3)
{
strcat(info, "{F3FF02}Admin Level 3 | {ffffff}/cnnn /fourdive /prison /unprison /aunlock /fuelcars /edit /vehslap,\n", sizeof(info));
        strcat(info, "{F3FF02}Admin Level 3 | {ffffff}/mark /gotomark /gethere /oldcar /gotocar /getcar /setage, \n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 3 | {ffffff}/respawnallcars /respawnrentbikes /respawnrentcars,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 4)
{
strcat(info, "{F3FF02}Admin Level 4 | {ffffff}/pban /fixveh /mole /logout /logoutpl /logoutall /asellhouse /aprodajfirmu /aprodajsfirmu /setchamp /mk,\n", sizeof(info));
strcat(info, "{F3FF02}Admin Level 4 | {ffffff}/destroycars /sethp /setarmor /forceskin /explode /supervehslap /unban /unbanip,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1338)
{
strcat(info, "{F3FF02}Head Admin | {ffffff}/weather /weatherall /makeircadmin /makeadmin /makeleader /bizentrance /sbizentrance /asellcar,\n", sizeof(info));
strcat(info, "{F3FF02}Head Admin | {ffffff}/givemoney /givegun /crash /changename /houseentrance /housexit /tod /startlotto /setstat /money /jetpack,\n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1340)
{
strcat(info, "{F3FF02}Vlasnik | {ffffff}/givemoney /givegun /veh /fixveh /givenos \n", sizeof(info));
strcat(info, "{F3FF02}Vlasnik | {ffffff}/gmx /apark /agl /agivedrugs /agivemats \n\n", sizeof(info));
}
if (PlayerInfo[playerid][pAdmin] >= 1)
{
strcat(info, "{F3FF02}========================================================================================================\n\n", sizeof(info));
}
ShowPlayerDialog(playerid, DIALOG_NONE, DIALOG_STYLE_MSGBOX, "{FFFFFF}LifeZone RolePlay Admin Help", info, "Uredu", "");
}
return 1;
    }


Stavi ovako!

Imal druga mogucnost?


Citat: Blaeks poslato April 03, 2013, 20:12:19 POSLE PODNE
ima da poslusas moj savet
ok ja kontam sta si mi reko ali problem je nepokazuje mi sve komande.
ako ubacim manji string
Poslednja Izmena: April 04, 2013, 17:06:30 POSLE PODNE od Harrson

imas mogucnost da usporedis 2 mogucnosti, moju + bugijevu, strcat funckija ce ti mnogo redje kreshati u pawnu