Proublems with MySQL query
#5

Quote:
Originally Posted by hanzen
Sorry, managed to post wrong lines.
Код:
	new query[256];
	format(query, sizeof(query), "INSERT INTO players (money, level, admin, interior, bank) VALUES ('%d', '%d', '%d', '%d', '%d')",PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pInt], PlayerInfo[playerid][pName], PlayerInfo[playerid][pBank]);
	mysql_query(query, SQLPtr);
Two things i noticed from that code: Specifier count doesnt match the variable count. Also, your using the wrong type of specifiers. pName and pAdmin should be strings (erm well pName for sure).

Reply


Messages In This Thread
Proublems with MySQL query - by hanzen - 26.05.2010, 21:55
Re: Proublems with MySQL query - by Kyosaur - 26.05.2010, 22:05
Re: Proublems with MySQL query - by hanzen - 26.05.2010, 22:06
Re: Proublems with MySQL query - by woot - 26.05.2010, 22:09
Re: Proublems with MySQL query - by Kyosaur - 26.05.2010, 22:14
Re: Proublems with MySQL query - by hanzen - 26.05.2010, 22:15
Re: Proublems with MySQL query - by Kyosaur - 26.05.2010, 22:18
Re: Proublems with MySQL query - by hanzen - 26.05.2010, 22:31
Re: Proublems with MySQL query - by hanzen - 26.05.2010, 23:02

Forum Jump:


Users browsing this thread: 1 Guest(s)