MySQL Loading value problem
#1

pawn Код:
cache_get_field_content(0, "RGB", mHolder, cHandle);
format(string, sizeof(string),"%d", mHolder);
SetPlayerColor(playerid, string);
Error:
pawn Код:
error 035: argument type mismatch (argument 2) // This error is on SetPlayerColor
I'm using /color <0-255> <0-255> <0-255>
The "color" is the value which is set as the player's name color. It saves correctly, but I can't manage to load it because of the error.
pawn Код:
new Query[300];
format(Query, sizeof(Query), "UPDATE `users` SET `RGB` = '%d' WHERE `Name` = '%s'", color, GetName(playerid));
mysql_function_query(cHandle, Query, false, "", "d", playerid);
Reply


Messages In This Thread
MySQL Loading value problem - by Affan - 28.06.2014, 02:46
Re: MySQL Loading value problem - by Jack_Leslie - 28.06.2014, 02:48
Re: MySQL Loading value problem - by Raefal - 28.06.2014, 03:41
Re: MySQL Loading value problem - by Affan - 28.06.2014, 03:52
Re: MySQL Loading value problem - by Emmet_ - 28.06.2014, 03:57
Re: MySQL Loading value problem - by AiRaLoKa - 28.06.2014, 03:58
Re: MySQL Loading value problem - by Affan - 28.06.2014, 04:06
Re: MySQL Loading value problem - by AiRaLoKa - 28.06.2014, 04:11
Re: MySQL Loading value problem - by Affan - 28.06.2014, 04:17
Re: MySQL Loading value problem - by Jack_Leslie - 28.06.2014, 04:47

Forum Jump:


Users browsing this thread: 1 Guest(s)