05.07.2009, 18:40
Hello i'm now realy ...
In some of my includes i have this:
In my Gamemode i use this:
Error:
Can you hep me?
AND
Why is there no why to use the content of the database like in php?
Example: print(value[row1]); ?
ThX, my head is bursting equal
In some of my includes i have this:
Код:
stock GetJobData(field[]) { new tmp[MAX_QUERY]; new result[MAX_QUERY]; new array[50]; format(tmp, sizeof(tmp), "SELECT %s FROM %s", field, JOB_TABLE); MySQL_query(tmp); MySQL_result(); while(MySQL_fetch(result)) { for(new i=0;i<sizeof(array);i++) { array[i]=result[i]; } } return array; }
Код:
new array[50]; new formatstring[50]; new formatarray[50]; array = GetJobData("spawn_x"); for(new i=0; i<sizeof(array); i++) { format(formatstring, sizeof(formatstring), "%s", array[i]); formatarray[i] = formatstring; // (88) : error 006: must be assigned to an array print(formatarray[i]); }
Quote:
(8 : error 006: must be assigned to an array |
AND
Why is there no why to use the content of the database like in php?
Example: print(value[row1]); ?
ThX, my head is bursting equal