- 0
Erori mysql_log
-
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
Punct.
: Punct.
Problema: Primesc cateva erori in mysql_log cand opresc serverul SA:MP.
Erori / warnings:
Lini/script:
[pawn]
public OnGameModeExit()
{
//...
STeri();
//...
return 1;
}
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
/* * TERI * */
/*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
public LTeri()
{
new Rows, Fields, t=0, ax=0, nrt;
cache_get_data(Rows, Fields, mysql);
if(Rows)
{
for(; t != Rows; ++t, ax = 0)
{
if ( t >= 29 ) {
printf( " !ERROR! Numarul de teritorii depaseste numarul maxim !ERROR!" ) ;
break ;
}
TeriInfo[t][zID] = cache_get_row_int(t, ax++, mysql) ;
TeriInfo[t][zOwned] = cache_get_row_int(t, ax++, mysql) ;
TeriInfo[t][zMinX] = cache_get_row_float(t, ax++, mysql) ;
TeriInfo[t][zMaxX] = cache_get_row_float(t, ax++, mysql) ;
TeriInfo[t][zMinY] = cache_get_row_float(t, ax++, mysql) ;
TeriInfo[t][zMaxY] = cache_get_row_float(t, ax++, mysql) ;
ter[t] = GangZoneCreateEx(TeriInfo[t][zMinX], TeriInfo[t][zMaxX], TeriInfo[t][zMinY], TeriInfo[t][zMaxY], t, 0.7);
nrt++;
}
}
printf("* Total Teritorii War: %d", nrt);
return 1;
}
public STeri()
{
for(new t=0; t<teritoriii; t++)
{
mysql_format(mysql, query, sizeof(query), "UPDATE `teritorii` SET `Owned`='%d', `MinX`='%f' `MaxX`='%f', `MinY`='%f', `MaxY`='%f' WHERE `ID`='%d'",
TeriInfo[t][zOwned], TeriInfo[t][zMinX], TeriInfo[t][zMaxX], TeriInfo[t][zMinY], TeriInfo[t][zMaxY], TeriInfo[t][zID]);
mysql_tquery(mysql, query, "", "");
}
return 1;
}
[/pawn]
Ai incercat sa rezolvi singur ?: Da. Aveam si la case aceeasi problema, dar s-a rezolvat.
Nu mai deschideti in pu*a mea servere de SA:MP !
Jucati-va pe cele care sunt ! Sunt suficiente !
Reguli de bun simt:
My work
:::http://pastebin.com/VRNRcaAs1 answer to this question
Recommended Posts