Dinamicno kreiranje organizacija Rework

Započeo Shomyy, Novembar 20, 2018, 20:48:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

UPDATE

• Promenjene/Dodane stvari:


Sve komande kreiranja stavljene u /orgpanel
Dodana komanda /raskinisavez


• Image



• Download

https://pastebin.com/ZPP0VcQ9

Uskoro update sa brisanjem
Poslednja Izmena: Maj 03, 2019, 19:35:27 POSLE PODNE od • Shomy •

Facebook - Klik



Odlicnoo
Update sam pastebin na prvoj strani

TIIIIIRRRRRRUUUUUU RIIIIIIIIIIIIIIIII RUUUUUUUUUUUUU




Nojs men nojs bruda  :-*
~Šutke ツ~

~ Designer | Scripter | TS3 Editor ~
~ Designer - Slobodan | Scripter - Slobodan | TS3 Editor - Slobodan ~
~ Facebook |CLICK! ~
~ Instagram |CLICK! ~

~ Community Info ~

~ Developer -- Wonder Project ~
</>
Do you want Create TextDraw,Edit Gamemode,Create Maps»CLICK«

Odlicno

••••••••••••••••••••••••••••••••••••••••••••••••
• SA:MP Player - Since 2011 •
• Pawno Scripter - Since 2017 •
• Newbie LUA Scripter - Since 2019 •
•••••••••••••••••••••••••••••••••••••••••••••••••

Evo ti savet jer me oci bole lane moje, inace odlicna je FS (ideja) ali preporucujem citav rewrite ( koristi MySQL ) jer kod kurcu ne valja tj lose je napisano sve:
Previše ti je kod neoptimizovan i neuredan;


[pawn]strmid( OrgInfo[ i ][ orgLider1 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgLider2 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );

                strmid( OrgInfo[ i ][ orgClan1 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan2 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan3 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan4 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan5 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan6 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan7 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan8 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan9 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan10 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan11 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan12 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan13 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan14 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan15 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan16 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan17 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan18 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan19 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan20 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan21 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan22 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan23 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan24 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan25 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan26 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan27 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan28 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan29 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan30 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );[/pawn]
30 linija, cemu? Mogao si u jednoj...

[pawn]for (new ORG_INFO:j = MEMBER_1; j <= MEMBER_30; j += ORG_INFO:MAX_PLAYER_NAME)
{
   strmid( OrgInfo[ i ][ ORG_INFO:j ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
}[/pawn]

6/10
Professional Developer

Citat: NaTsu poslato Maj 04, 2019, 11:48:42 PRE PODNE
Evo ti savet jer me oci bole lane moje, inace odlicna je FS (ideja) ali preporucujem citav rewrite ( koristi MySQL ) jer kod kurcu ne valja tj lose je napisano sve:
Previše ti je kod neoptimizovan i neuredan;


[pawn]strmid( OrgInfo[ i ][ orgLider1 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgLider2 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );

                strmid( OrgInfo[ i ][ orgClan1 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan2 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan3 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan4 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan5 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan6 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan7 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan8 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan9 ], "Niko", 0, strlen( "Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan10 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan11 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan12 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan13 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan14 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan15 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan16 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan17 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan18 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan19 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan20 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan21 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan22 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan23 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan24 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan25 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan26 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan27 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan28 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan29 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
                strmid( OrgInfo[ i ][ orgClan30 ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );[/pawn]
30 linija, cemu? Mogao si u jednoj...

[pawn]for (new ORG_INFO:j = MEMBER_1; j <= MEMBER_30; j += ORG_INFO:MAX_PLAYER_NAME)
{
   strmid( OrgInfo[ i ][ ORG_INFO:j ], "Niko", 0, strlen("Niko" ), MAX_PLAYER_NAME );
}[/pawn]

6/10
Sto se tice linija, hvala, nisam znao
Sto se tice neoptimizovanosti, to znam, starija fs a mrzi me da optimizujem
Sto se tice neurednosti, jbg, takav sam hahhaahh

Hvala :)

Facebook - Klik



Svidja mi se FS :D ;)
Kon'nichiwa watashi no yūjin




bravo soglii

credits: Xunder, Ino420, Muma

Citat: Pottus;3903994SetPlayerPos("dreni1998", 666.666, 666.666, 666.666, 666.666);    ///// GO IN HELL MOTHERFUCKER

https://i.imgur.com/XHLx9oj.gif
https://i.ibb.co/ZJqQKWT/NXRX.gif