error 035: argument type mismatch (argument 1)
mysql_query(sql);
forward Save_Garages(); public Save_Garages() { for(new i=0; i < garageCount+1; i++) { new sql[256]; format(sql,sizeof(sql),"UPDATE `garages` SET \ `Owner`='%s',\ `Owned`='%d',\ `Locked`='%d',\ `Price`='%d',\ `PosX`='%f',\ `PosY`='%f',\ `PosZ`='%f',\ `Interior`='%d',\ `UID`='%d'\ WHERE `UID`='%d'", gInfo[i][Owner], gInfo[i][Owned], gInfo[i][Locked], gInfo[i][Price], gInfo[i][PosX], gInfo[i][PosY], gInfo[i][PosZ], gInfo[i][Interior], gInfo[i][UID], gInfo[i][UID]); mysql_query(sql); } }
mysql_query(query[], resultid, extraid, connectionHandle);
It goes like this:
PHP код:
|
And where I need to put this code?After mysql_query(sql); or...
|
Edit it to your parameters and replace the mysql_query(sql); to it.
Advice: Use mysql_format for updating and things. |
error 017: undefined symbol "query"
forward Save_Garages(); public Save_Garages() { new var[256]; for(new i=0; i < garageCount+1; i++) { format(var, sizeof(var), "UPDATE `garages` SET `Owner`='%s',`Owned`='%d',`Locked`='%d',`Price`='%d',`PosX`='%f',`PosY`='%f',`PosZ`='%f',`Interior`='%d',`UID`='%d' WHERE `UID`='%d'",gInfo[i][Owner],gInfo[i][Owned],gInfo[i][Locked],gInfo[i][Price],gInfo[i][PosX],gInfo[i][PosY],gInfo[i][PosZ],gInfo[i][Interior],gInfo[i][UID],gInfo[i][UID]); mysql_query(SQL ,var); // mysql_query(query[], resultid, extraid, connectionHandle); } }