Witam. Od d?u?szego czasu na mapie Ultimate DeatchMatch (Jeszcze za czas?w PSRv1) mam dziwny problem. Jest to o tyle dziwny problem, ?e wyst?puje losowo, o r??nej porze i o r??nej ilo?ci graczy. Przejd? do opisu problemu: Gdy gamemode dzia?a nagle zaczyna si? co? sypa?, nie dzia?aj? komendy, nie zapisuje statystyk graczy, nie mo?na zalogowa? si? na konto (pomimo podania prawid?owego has?a), po prostu jakby gamemode stan?? ale gra? si? da. W logach z aktywnym crashdetectem zaczyna sypa? r??ne b??dy.
[code][18] [debug] Run time error 4: "Array index out of bounds"
[18] [debug] Accessing element at index 100 past array upper bound 51
[18] [debug] AMX backtrace:
[18] [debug] #0 001bb25c in public secondTimer () from new2.amx
[18] [debug] Run time error 4: "Array index out of bounds"
[18] [debug] Accessing element at index 100 past array upper bound 51
[18] [debug] AMX backtrace:
[18] [debug] #0 000291e4 in (444) from new2.amx
[18] [debug] #1 0011fad4 in (9) from new2.amx
[18] [debug] #2 0017e2ec in public cmd_v (9, 787900) from new2.amx
[18] [debug] #3 00172220 in public cmd_nrg (9, 1322072) from new2.amx
[18] [debug] #4 native CallLocalFunction () from samp03svr
[18] [debug] #5 00007260 in public OnPlayerCommandText (9, 1322052) from new2.amx
[18] [debug] Run time error 4: "Array index out of bounds"
[18] [debug] Accessing element at index 100 past array upper bound 51
[18] [debug] AMX backtrace:
[18] [debug] #0 00029...
Siemka mam taki problem gdy? napisa?em sobie funkcje kt?ra pobierze mi dane z bazy ale wywala mi b??d typu Undefinied symbol PlayerCache gdzie jest to zdefiniowane na g?rze skryptu oraz jeszcze inne b??dy oto kod
[code]
stock PlayerLogin(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
new query[256], data[128];
format(query, sizeof(query), "SELECT * FROM members WHERE name = '%s'", name);
mysql_query(query);
mysql_store_result();