Jump to content
  • 0

pomoc nefunguje příkaz /info


Sweet

Dotaz

čau, jsem tu s takovym malym problémem.. doteď mi příkaz /info šel, když najednou sem tam teď přidal 5 dalších blbostí a začalo to psát, že příkaz neexistuje...

 

dcmd_info(playerid, params[])
{
#pragma unused params
new string[1000];
//----------
new a = Information[playerid][Marihuana];
new b = Information[playerid][Kokain];
new c = Information[playerid][Heroin];
new d = Information[playerid][Extaze];
new e = Information[playerid][Cigareta];
//----------
new hodiny;
hodiny = Information[playerid][NahranyCas] / 3600;
//----------
strcat(string, "{00FFFF}Out of Character\n\n", sizeof(string));
strcat(string, "{FFFFFF}Nahraný čas: %dh\n", sizeof(string));
strcat(string, "{FFFFFF}Administrátor: %s\n", sizeof(string));
strcat(string, "{228b22}\nIn Character\n\n", sizeof(string));
strcat(string, "{FFFFFF}Zabití: %d\n", sizeof(string));
strcat(string, "{FFFFFF}Úmrtí: %d\n", sizeof(string));
strcat(string, "{FFFFFF}Skin: %d\n", sizeof(string));
strcat(string, "{FFFFFF}Věk: %d\n", sizeof(string));
strcat(string, "{FFFFFF}Zaměstnání: %s\n", sizeof(string));
strcat(string, "{FFFFFF}Občanský průkaz: %s\n", sizeof(string));
strcat(string, "{FFFFFF}Řidičský průkaz A: %s\n", sizeof(string));
strcat(string, "{FFFFFF}Řidičský průkaz B: %s\n", sizeof(string));
strcat(string, "{FFFFFF}Řidičský průkaz C: %s\n", sizeof(string));
strcat(string, "{FFFFFF}Letecký průkaz: %s\n", sizeof(string));
strcat(string, "{FFFFFF}Marihuana: %dg\n", sizeof(string));
strcat(string, "{FFFFFF}Kokain: %dg\n", sizeof(string));
strcat(string, "{FFFFFF}Heroin: %dg\n", sizeof(string));
strcat(string, "{FFFFFF}Extáze: %d tablet\n", sizeof(string));
strcat(string, "{FFFFFF}Cigareta: %d\n", sizeof(string));
format(string, sizeof(string), string, hodiny, AnoNe[information[playerid][Admin]], Information[playerid][Zabiti], Information[playerid][umrti], Information[playerid][skin], Information[playerid][Vek], SeznamZamestnani[information[playerid][Zamestnani]], AnoNe[information[playerid][Obcanka]], AnoNe[information[playerid][RidicakA]], AnoNe[information[playerid][RidicakB]], AnoNe[information[playerid][RidicakC]], AnoNe[information[playerid][Letecak]],a,b,c,d,e);
SPD(playerid, 13, DIALOG_STYLE_MSGBOX, "Informace", string, "Zavrit", "");
return 1;
}

Link to comment
Share on other sites

5 odpovědí na tuto otázku

Recommended Posts

  • 0
  • Administrátor

sniž string na polovinu a pak to zkus. Už se mi několikrát stalo že příkaz nešel s moc velkym stringem zbytečným

Link to comment
Share on other sites

  • 0

Pořád to hlásí, že příkaz neexistuje :/

Asi bude chyba někde jinde zkontroluj si to co si přidal jestli se ti to do sebe nějak nezakrývá .... A jestli to máš mimo public OnPlayerCommandText ale to asi máš .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...