new Query[256], pName[35]; new Float:x, Float:y, Float:z; GetPlayerName(playerid, pName, 35); GetPlayerPos(playerid, x, y, z); mysql_format(ConnectMySQL, Query, sizeof(Query), "UPDATE `aractrash` SET `tposX` = %f, `tposY` = %f, tposZ = %f, `KullaniciAdi` = %s)x, ,y ,z ,pName"); mysql_tquery(ConnectMySQL, Query);
error 076: syntax error in the expression, or invalid function call
new Query[256], pName[35];
new Float:x, Float:y, Float:z;
GetPlayerName(playerid, pName, 35);
GetPlayerPos(playerid, x, y, z);
mysql_format(ConnectMySQL, Query, sizeof(Query), "UPDATE `aractrash` SET `tposX` = '%f', `tposY` = '%f', tposZ = '%f', `KullaniciAdi` = '%s'", x, ,y ,z ,pName);
mysql_tquery(ConnectMySQL, Query);
C:\Users\**\Desktop\3d\gamemodes\...pwn(288) : warning 215: expression has no effect
C:\Users\**\Desktop\3d\gamemodes\...pwn(288) : warning 215: expression has no effect
C:\Users\**\Desktop\3d\gamemodes\....pwn(288) : warning 215: expression has no effect
C:\Users\**\Desktop\3d\gamemodes\....pwn(288) : error 001: expected token: ";", but found ")"
C:\Users\**\Desktop\3d\gamemodes\...pwn(288) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
line 288
mysql_format(ConnectMySQL, Query, sizeof(Query), "UPDATE `aractrash` SET `tposX` = '%f', `tposY` = '%f', tposZ = '%f', `KullaniciAdi` = '%s'", x, ,y ,z ,pName);
You have put ) instead of " and forgot ,
PHP Code:
|
new Query[256], pName[35];
new Float:x, Float:y, Float:z;
GetPlayerName(playerid, pName, 35);
GetPlayerPos(playerid, x, y, z);
mysql_format(ConnectMySQL, Query, sizeof(Query), "UPDATE aractrash SET tposX = %f, tposY = %f, tposZ = %f, KullaniciAdi = %s", x, y, z, pName);
mysql_tquery(ConnectMySQL, Query);
PHP Code:
|
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
no errors