Pitbul97 Posted August 25, 2016 Posted August 25, 2016 Intrebarea / Cererea mea este: Salut tuturor am marea rugaminte daca cineva mar putea ajuta cu acest mare mister cum pot face la comanda /factions sa apara asa cum apare in aceasta imagine http://imgur.com/a/TS1wW stiu ca este destul de complicat avand in vedere ca trebuia acea legatura cu mysql serverul meu ruleaza deja pe mysql. Alte detalii: Folosesc zcmd si actuala mea comanda /factions arata in felul urmator http://pastebin.com/B0FYee0N
Sinner.PWN Posted August 27, 2016 Posted August 27, 2016 Nu putem sa te ajutam daca nu ne dai si variabilele tale ca sa stim cum se stocheaza liderii, membrii sau alte minunatii. Iti las mai jos un exemplu de /factions asa cum am eu. SQL_Function ShowFactionsDialog( playerid ) { new X, Rows, Fields; cache_get_data( Rows, Fields, g_Handle ); gsBigString[ 0 ] = EOS; for( new i = 0; i < Rows; i++ ) { X = cache_get_field_content_int( i, "factionKey", g_Handle ); SetGVarInt( "faction_Applications", cache_get_field_content_int( i, "factionApplications", g_Handle ), X ); SetGVarInt( "faction_Members", cache_get_field_content_int( i, "factionMembers", g_Handle ), X ); SetGVarInt( "faction_Slots", cache_get_field_content_int( i, "factionSlots", g_Handle ), X ); } gsString[ 0 ] = EOS; format( gsString, sizeof gsString, "Nume Factiune\tMembri\tSloturi\tAplicatii\n" ); foreach( ServerFactions, f ) { new fStatus[ 32 ]; fStatus = ( GetGVarInt( "faction_Applications", f ) ) ? ("{7CFC00}Deschise") : ("{ec2913}Inchise" ); format( gsString, sizeof(gsString),"%s%s\t%d\t%d\t%s"COL_W"\n", gsString, GetGVarStringEx( "faction_Name", f ), GetGVarInt( "faction_Members", f ), GetGVarInt( "faction_Slots", f ), fStatus ); } ShowPlayerDialog( playerid, DIALOG_FACTIONS, DIALOG_STYLE_TABLIST_HEADERS, "Server: Factions", gsString, "FindHQ", "Cancel" ); return true; }
Pitbul97 Posted August 27, 2016 Author Posted August 27, 2016 (edited) folosesc Gm LCZ-Gaming_RPG iar ce mi-ai dat tu aici ce este ? Edited August 27, 2016 by Pitbul97
Sinner.PWN Posted September 5, 2016 Posted September 5, 2016 Este un cod original din calculatorul meu. Daca ai avea idee cum sa-l folosesti ar fi aur pentru tine.
Recommended Posts