- 0
Bug
-
Similar Content
-
- 7 replies
- 634 views
-
- 10 answers
- 3.214 views
-
- 3 answers
- 890 views
-
- 16 answers
- 2.613 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Ph0eniX
salutare mi sa creeat un bug ... dar nu inteleg din ce motiv:| ma poate ajuta va rog cineva...? bugul este la topul de la gang , numi arata NICIUN GANG nimic...
ShowTopGang( playerid, gang_points[ ], what[ ]) { #pragma unused what //-------------------------------------------------------------------------- new Speed = GetTickCount(), DialString[3_000], String[2][256], Query[2][256], DBResult:Result1, gColor[12] = "{00BBF6}", oColor[12] = "{AEFF00}"; //-------------------------------------------------------------------------- Database = db_open( "GangSystem.db" ); //-------------------------------------------------------------------------- format( Query[ 0 ], 256, "SELECT `gangname` FROM `gangs` ORDER BY (`%s` * 1) DESC limit %d", gang_points, limit); Result1 = db_query( Database, Query[ 0 ] ); //-------------------------------------------------------------------------- format( DialString, sizeof DialString, "%sMore info about our {FF0000}Gang System {AEFF00}find on: {FF0000}/ghelp\n",oColor); for( new Qr; Qr < db_num_rows( Result1 ); Qr ++ ) { db_get_field( Result1, 0, String[ 0 ], 256 ); format( Query[ 1 ], 256, "SELECT `%s` FROM `gangs` WHERE `gangname` = '%s'", gang_points, String[ 0 ] ); new DBResult:Result2 = db_query( Database, Query[ 1 ] ); db_get_field( Result2, 0, String[ 1 ], 256 ); format( DialString, sizeof DialString, "%s\n{AFAFAF}%d.{FF0000} %s {AFAFAF}GPoints: %s%s", DialString, Qr + 1, String[0], gColor, FormatNumber(strval(String[1]))); db_next_row( Result1 ); db_free_result( Result2 ); } db_free_result( Result1 ); format( DialString, sizeof DialString, "%s\n\n{AEFF00}Top list generated in {FF0000}%d{AEFF00}ms.", DialString, GetTickCount( ) - Speed ); ShowPlayerDialog( playerid, 123, DIALOG_STYLE_MSGBOX, "Top Gangs", DialString, "Ok", "" ); return ( 1 ); }public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; }4 answers to this question
Recommended Posts