23.06.2011, 12:27
Hello,
Probably it's me, that's why I am posting here.
This is what MySQL log gives:
What did I do wrong?
Probably it's me, that's why I am posting here.
pawn Код:
new target,Float:Pos[3];
if(!sscanf(params,"u",target))
{
if(IsPlayerConnected(target) && target != playerid)
{
SendFormatMessage(playerid,COLOR_ORANGE,"(( You have started spectating %s (ID: %d). ))",Playername(target),target);
TogglePlayerSpectating(playerid,1);
PlayerSpectatePlayer(playerid,target,SPECTATE_MODE_NORMAL);
SetPVarInt(playerid,"Spectating",1);
KillTimer(GetPVarInt(playerid,"JailCountDownTimer"));
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
format(QueryString,sizeof(QueryString),"UPDATE `PlayerInfo` SET `PosX` = '%f',`PosY` = '%f',`PosZ` = '%f', `Interior` = '%d',`Money` = '%d' WHERE `Playername` = '%s'",Pos[0],Pos[1],Pos[2],GetPlayerInterior(playerid),GetPlayerMoney(playerid),Playername(playerid));
mysql_query(QueryString);
return 1;
}
else return SendClientMessage(playerid,COLOR_RED,"Invalid ID");
}
else return SendClientMessage(playerid,COLOR_RED,"Syntax Error: /spec [ID / Part of Name].");
Код:
[14:24:51] CMySQLHandler::Query(UPDATE `PlayerInfo` SET `PosX` = '0.000000',`PosY` = '0.000000',`PosZ` = '0.000000', `Interior` = '0',`Money` = '0' WHERE `Playername` = 'Jeff Venturas') - Successfully executed.