Help Scripting on MySQL
#1

i got this errors:

Код:
 C:\Users\Administrator\Desktop\Iron City on MySQL\gamemodes\IC-RP.pwn(2546) : error 035: argument type mismatch (argument 3)
C:\Users\Administrator\Desktop\Iron City on MySQL\gamemodes\IC-RP.pwn(2547) : error 035: argument type mismatch (argument 3)
C:\Users\Administrator\Desktop\Iron City on MySQL\gamemodes\IC-RP.pwn(2548) : error 035: argument type mismatch (argument 3)
C:\Users\Administrator\Desktop\Iron City on MySQL\gamemodes\IC-RP.pwn(2549) : error 035: argument type mismatch (argument 3)
C:\Users\Administrator\Desktop\Iron City on MySQL\gamemodes\IC-RP.pwn(2550) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
on there line i got

pawn Код:
PlayerInfo[extraid][pCarTicket] = CMySQL_Int(PlayerName(extraid), "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Int(PlayerName(extraid), "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Int(PlayerName(extraid), "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Int(PlayerName(extraid), "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(PlayerName(extraid), "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(PlayerName(extraid), "Accounts", "Username", "AdmName")), 255);
Whats wrong :S
Reply
#2

Someone please
Reply
#3

Some people apparently think they are important enough to bump their own topic after 10 minutes.

That looks very inefficient in the first place. 5 calls to MySQL to get 5 pieces of data is too much.
Better fetch the row in its whole and then use sscanf/explode/split to assign the data to your desired variables.

If you don't want to do that, then show the function headers.
Reply
#4

FIXED, thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)