MySQL problem
#3

Quote:
Originally Posted by Sanady
Посмотреть сообщение
pawn Код:
new playerid2;
static gQuery[60];
format(gQuery,sizeof gQuery,"UPDATE `Accounts` SET `TrashMasterMissions` = '%d' WHERE `ID` = '%d' LIMIT 1;",PInfo[playerid][TrashMasterMissions],PInfo[playerid2][ID]);
mysql_query(gQuery);
Are you joking with me or something?
Doing "new playerid2;" Will assign playerid2 to 0
It will always retrieve the variable of the playerid 0, that makes no sense!
Reply


Messages In This Thread
MySQL problem - by FireCat - 28.07.2012, 15:56
Re: MySQL problem - by Sanady - 28.07.2012, 16:00
Re: MySQL problem - by FireCat - 28.07.2012, 16:01
Re: MySQL problem - by Sanady - 28.07.2012, 16:05
Re: MySQL problem - by Virtual1ty - 28.07.2012, 16:10
Re: MySQL problem - by FireCat - 28.07.2012, 16:13
Re: MySQL problem - by Virtual1ty - 28.07.2012, 16:14
Re: MySQL problem - by FireCat - 28.07.2012, 16:17
Re: MySQL problem - by Virtual1ty - 28.07.2012, 16:20

Forum Jump:


Users browsing this thread: 2 Guest(s)