Compile Errors [+rep]
#3

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
It's because you use the variale "query" first in this line:
pawn Код:
mysql_format(handle,query, sizeof(tquery), "SELECT playerName,playerGroupRank,playerCarWeapon3,playerLastLogin, playerDays FROM playeraccounts WHERE playerGroup = %d ORDER BY playerGroupRank DESC LIMIT 25",playerVariables[playerid][pGroup]);
Then afterwards, you create it:
pawn Код:
new test[256], query[256], test2[256], test3[256], days[256];
You should first declare your variables before you use them.

BTW, you use the "query" variable to store your info, then use "sizeof(tquery)" for it's size.
That should be "query" as well.
Thx dude, +rep.
Reply


Messages In This Thread
Compile Errors [+rep] - by KingPersona - 29.11.2014, 20:04
Re: Compile Errors [+rep] - by PowerPC603 - 29.11.2014, 20:09
Re: Compile Errors [+rep] - by KingPersona - 29.11.2014, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)