05.07.2009, 20:52
pawn Код:
new row[3][30];
I thought again about it, can you try that code maybe :S
I never worked directly with any mysql plugin, so I only guess things
Thats my last try for today
pawn Код:
stock GetJobData(row[][], field[])
{
new result[MAX_QUERY];
format(result, sizeof(result), "SELECT %s FROM %s", field, JOB_TABLE);
MySQL_query(result), MySQL_result();
for(new y; MySQL_fetch(row[y]); y++) {}
}
pawn Код:
new row[3][30];
GetJobData(row, "spawn_x");
print(row[0]);
print(row[1]);
print(row[2]);