09.10.2016, 14:07
Triggering this:
Keeps showing me this in the console:
Any suggestions that might help? Much appreciated.
Код:
CMD:loadpass(playerid)
{
new query[120],pName[MAX_PLAYER_NAME],string[124];
GetPlayerName(playerid,pName,sizeof(pName));
format(query, sizeof(query), "SELECT * FROM `users` WHERE `Username` = '%s'", pName);
mysql_query(query);
mysql_store_result();
new field[58][120],row[128];
mysql_fetch_row_format(row, "|");
explode(row, field, "|");
mysql_free_result();
PlayerInfo[playerid][pPass] = strval(field[3]);
format(string,sizeof(string),"%d",PlayerInfo[playerid][pPass]); SendClientMessage(playerid,-1,string);
return 1;
}
Код:
[debug] Run time error 3: "Stack/heap collision (insufficient stack size)" [debug] Stack pointer (STK) is 0x1B063EC, heap pointer (HEA) is 0x1B096B8 [debug] AMX backtrace: [debug] #0 00000000 in public cmd_loadpass () from maintest.amx [debug] #1 native CallLocalFunction () from samp-server.exe [debug] #2 00000000 in public OnPlayerCommandText () from maintest.amx

