08.04.2009, 07:27
if I use somethink like this:
The server crashes and creates a crashinfo.txt
But when I remove the mysql_free_result(); it just works fine..
Here is the content from the crashinfo.txt:
Hris
pawn Код:
format(sql, sizeof(sql), "SELECT * FROM jobright WHERE userID = '%d' AND jobID = '%d'", GlobalAccountData[playerid][AccountID], JOB_MEDIC);
mysql_query(sql);
mysql_store_result();
if(mysql_num_rows() == 1)
{
//do somethink
}
mysql_free_result();
But when I remove the mysql_free_result(); it just works fine..
Here is the content from the crashinfo.txt:
Код:
-------------------------- Exception At Address: 0x00B56ED0 Registers: EAX: 0xDDDDDDDD EBX: 0x00000001 ECX: 0xDDDDDDDD EDX: 0x00DEFC15 ESI: 0x01215968 EDI: 0x0013F55C EBP: 0x0013F55C ESP: 0x0013F520 EFLAGS: 0x00010212 Stack: