SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/07/2012, 02:08 PM   #1
Ahrim
Big Clucker
 
Join Date: Dec 2011
Posts: 145
Reputation: 24
Default Will be greatly appreciated if someone could tell me what's the problem is.

Hello, SA-MP users.
I have some problems here, with a script, that was given by a person from skype.
Well, I will be greatly appreciated if anyone could help me, since I was backstabbed by my own trusted scripter.
The errors will be on bold text, thanks.

Code:
	    case MySQL_QUERY_LOGIN: {
	        mysql_store_result();
			if(mysql_num_rows() >= 1) {
			    mysql_fetch_row_format(string, "|");
			    print(string);
				new ustring[5];
				sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
				ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
				PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
				PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
				PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
				PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
				PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
				PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
				PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
				PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
				PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
				PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
				PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
				PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
				PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
				PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
				PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
				PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
				PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
			 	PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
			 	PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
			 	ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
			 	PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);
			 	
			 	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);
				mysql_free_result();
			    OnLoginInit(extraid);
			}
			else
		    {
			    if(PlayerInfo[extraid][pWrongPassword] >= 5)
			    {
			        SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
			        BanEx(extraid,"Wrong Password");
			    }
			    else
			    {
			        PlayerInfo[extraid][pWrongPassword]++;
			        SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
			    }
		    }
	    }
	}
	return 1;
}
Code:
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2535) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2536) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2538) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2539) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.
__________________
Ahrim is offline   Reply With Quote
Old 09/07/2012, 02:13 PM   #2
RedJohn
Gangsta
 
RedJohn's Avatar
 
Join Date: Jul 2012
Location: SolidWorks
Posts: 674
Reputation: 60
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

Which line is 2535 - 2539?

EDIT: Oh bolded one!
__________________
RedJohn is offline   Reply With Quote
Old 09/07/2012, 02:16 PM   #3
Rudyy
Big Clucker
 
Rudyy's Avatar
 
Join Date: Oct 2009
Posts: 50
Reputation: 6
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

pawn Code:
case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);
               
                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Int(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Int(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Int(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}

try this.
__________________
Bleh ~
Rudyy is offline   Reply With Quote
Old 09/07/2012, 02:35 PM   #4
Ahrim
Big Clucker
 
Join Date: Dec 2011
Posts: 145
Reputation: 24
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

Quote:
Originally Posted by Rudyy View Post
pawn Code:
case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);
               
                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Int(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Int(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Int(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}

try this.
Worked, thanks.

but, now, there's a new problem.

Code:
	    case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);

                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Int(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Int(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Int(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}
Code:
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : error 001: expected token: ",", but found "-string-"
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : warning 215: expression has no effect
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : warning 215: expression has no effect
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : warning 215: expression has no effect
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : error 001: expected token: ";", but found ")"
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : error 029: invalid expression, assumed zero
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
__________________
Ahrim is offline   Reply With Quote
Old 09/07/2012, 02:56 PM   #5
Kirollos
Gangsta
 
Kirollos's Avatar
 
Join Date: Jun 2010
Location: Cairo, Egypt
Posts: 588
Reputation: 79
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

replace

pawn Code:
PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname "Accounts", "Username", "CarTicket");

to

pawn Code:
PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname, "Accounts", "Username", "CarTicket");
__________________

My Work:
Language
Project
Additional hyperlink
PHP
it is nice to be important but it is more important to be nice!
TDM banished yay!
iAnonymous is noob
Quote:
Originally Posted by iAnonymous View Post
You should live your life rather then opening a server!
Kirollos is offline   Reply With Quote
Old 09/07/2012, 03:02 PM   #6
Ahrim
Big Clucker
 
Join Date: Dec 2011
Posts: 145
Reputation: 24
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

Quote:
Originally Posted by kirollos View Post
replace

pawn Code:
PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname "Accounts", "Username", "CarTicket");

to

pawn Code:
PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname, "Accounts", "Username", "CarTicket");
done, now... old problem,

*FULL function*
Code:
public OnQueryFinish( query[], resultid, extraid, connectionHandle ) {
    new
        QueryID = 0,
	    string[1500];

	switch(resultid) {
	    case 1: {
	        mysql_store_result();
	        while(mysql_fetch_row_format(string,"|"))
	    	{
	        	if(mysql_num_rows() <= 0) continue;
				sscanf(string, "p<|>iffffiisiiiiiiiiiiiiiii",
				CarInfo[QueryID][cModel], CarInfo[QueryID][cX],
				CarInfo[QueryID][cY], CarInfo[QueryID][cZ], CarInfo[QueryID][cAngle],
				CarInfo[QueryID][cColorOne], CarInfo[QueryID][cColorTwo],
				CarInfo[QueryID][cOwner], CarInfo[QueryID][cOwned],
				CarInfo[QueryID][cValue], CarInfo[QueryID][cLock],
				CarInfo[QueryID][cFuel], CarInfo[QueryID][cDonate],
				CarInfo[QueryID][cMod][0],CarInfo[QueryID][cMod][1],
				CarInfo[QueryID][cMod][2], CarInfo[QueryID][cMod][3],
				CarInfo[QueryID][cMod][4], CarInfo[QueryID][cMod][5],
				CarInfo[QueryID][cMod][6], CarInfo[QueryID][cMod][7],
				CarInfo[QueryID][cMod][8], CarInfo[QueryID][cMod][9]);
				QueryID ++;
			}
			mysql_free_result();
	    }
	    case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);

                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                PlayerInfo[extraid][pCarTicket] = CMySQL_Int(ppname, "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Int(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Int(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Int(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}

Code:
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2538) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2539) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2540) : error 035: argument type mismatch (argument 3)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2541) : error 035: argument type mismatch (argument 4)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

5 Errors.
__________________
Ahrim is offline   Reply With Quote
Old 09/07/2012, 05:28 PM   #7
Rudy_
Gangsta
 
Rudy_'s Avatar
 
Join Date: Nov 2011
Location: -Sweet Home- Reputation:9999
Posts: 791
Reputation: 122
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

what's these Errors lines?
Show em please
Rudy_ is offline   Reply With Quote
Old 09/07/2012, 05:36 PM   #8
Rudy_
Gangsta
 
Rudy_'s Avatar
 
Join Date: Nov 2011
Location: -Sweet Home- Reputation:9999
Posts: 791
Reputation: 122
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

try it
pawn Code:
public OnQueryFinish( query[], resultid, extraid, connectionHandle ) {
    new
        QueryID = 0,
        string[1500];

    switch(resultid) {
        case 1: {
            mysql_store_result();
            while(mysql_fetch_row_format(string,"|"))
            {
                if(mysql_num_rows() <= 0) continue;
                sscanf(string, "p<|>iffffiisiiiiiiiiiiiiiii",
                CarInfo[QueryID][cModel], CarInfo[QueryID][cX],
                CarInfo[QueryID][cY], CarInfo[QueryID][cZ], CarInfo[QueryID][cAngle],
                CarInfo[QueryID][cColorOne], CarInfo[QueryID][cColorTwo],
                CarInfo[QueryID][cOwner], CarInfo[QueryID][cOwned],
                CarInfo[QueryID][cValue], CarInfo[QueryID][cLock],
                CarInfo[QueryID][cFuel], CarInfo[QueryID][cDonate],
                CarInfo[QueryID][cMod][0],CarInfo[QueryID][cMod][1],
                CarInfo[QueryID][cMod][2], CarInfo[QueryID][cMod][3],
                CarInfo[QueryID][cMod][4], CarInfo[QueryID][cMod][5],
                CarInfo[QueryID][cMod][6], CarInfo[QueryID][cMod][7],
                CarInfo[QueryID][cMod][8], CarInfo[QueryID][cMod][9]);
                QueryID ++;
            }
            mysql_free_result();
        }
        case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);
                }
                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                [b]PlayerInfo[extraid][pCarTicket] = CMySQL_Set(ppname, "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Set(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Set(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Set(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);[/b]
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}
Rudy_ is offline   Reply With Quote
Old 09/07/2012, 06:07 PM   #9
Maruti
Banned
 
Join Date: Jul 2012
Posts: 38
Reputation: 8
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

is this error?
sscanf(string, "p<|>iffffiisiiiiiiiiiiiiiii",
Maruti is offline   Reply With Quote
Old 10/07/2012, 06:16 AM   #10
Ahrim
Big Clucker
 
Join Date: Dec 2011
Posts: 145
Reputation: 24
Default Re: Will be greatly appreciated if someone could tell me what's the problem is.

Quote:
Originally Posted by Rudy_ View Post
try it
pawn Code:
public OnQueryFinish( query[], resultid, extraid, connectionHandle ) {
    new
        QueryID = 0,
        string[1500];

    switch(resultid) {
        case 1: {
            mysql_store_result();
            while(mysql_fetch_row_format(string,"|"))
            {
                if(mysql_num_rows() <= 0) continue;
                sscanf(string, "p<|>iffffiisiiiiiiiiiiiiiii",
                CarInfo[QueryID][cModel], CarInfo[QueryID][cX],
                CarInfo[QueryID][cY], CarInfo[QueryID][cZ], CarInfo[QueryID][cAngle],
                CarInfo[QueryID][cColorOne], CarInfo[QueryID][cColorTwo],
                CarInfo[QueryID][cOwner], CarInfo[QueryID][cOwned],
                CarInfo[QueryID][cValue], CarInfo[QueryID][cLock],
                CarInfo[QueryID][cFuel], CarInfo[QueryID][cDonate],
                CarInfo[QueryID][cMod][0],CarInfo[QueryID][cMod][1],
                CarInfo[QueryID][cMod][2], CarInfo[QueryID][cMod][3],
                CarInfo[QueryID][cMod][4], CarInfo[QueryID][cMod][5],
                CarInfo[QueryID][cMod][6], CarInfo[QueryID][cMod][7],
                CarInfo[QueryID][cMod][8], CarInfo[QueryID][cMod][9]);
                QueryID ++;
            }
            mysql_free_result();
        }
        case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);
                }
                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                [b]PlayerInfo[extraid][pCarTicket] = CMySQL_Set(ppname, "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Set(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Set(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Set(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);[/b]
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}
Done, still, not working, makes me getting more errors.

ERROR ON BOLD
Code:
public OnQueryFinish( query[], resultid, extraid, connectionHandle ) {
    new
        QueryID = 0,
        string[1500];

    switch(resultid) {
        case 1: {
            mysql_store_result();
            while(mysql_fetch_row_format(string,"|"))
            {
                if(mysql_num_rows() <= 0) continue;
                sscanf(string, "p<|>iffffiisiiiiiiiiiiiiiii",
                CarInfo[QueryID][cModel], CarInfo[QueryID][cX],
                CarInfo[QueryID][cY], CarInfo[QueryID][cZ], CarInfo[QueryID][cAngle],
                CarInfo[QueryID][cColorOne], CarInfo[QueryID][cColorTwo],
                CarInfo[QueryID][cOwner], CarInfo[QueryID][cOwned],
                CarInfo[QueryID][cValue], CarInfo[QueryID][cLock],
                CarInfo[QueryID][cFuel], CarInfo[QueryID][cDonate],
                CarInfo[QueryID][cMod][0],CarInfo[QueryID][cMod][1],
                CarInfo[QueryID][cMod][2], CarInfo[QueryID][cMod][3],
                CarInfo[QueryID][cMod][4], CarInfo[QueryID][cMod][5],
                CarInfo[QueryID][cMod][6], CarInfo[QueryID][cMod][7],
                CarInfo[QueryID][cMod][8], CarInfo[QueryID][cMod][9]);
                QueryID ++;
            }
            mysql_free_result();
        }
        case MySQL_QUERY_LOGIN: {
            mysql_store_result();
            if(mysql_num_rows() >= 1) {
                mysql_fetch_row_format(string, "|");
                print(string);
                new ustring[5];
                sscanf(string, "p<|>s[5]s[5]iiiifffffiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiis[5]s[5]s[128]iiiiiiiiiis[5]",
                ustring, ustring, PlayerInfo[extraid][pCash], PlayerInfo[extraid][pModel], PlayerInfo[extraid][pCrash],
                PlayerInfo[extraid][pAge], PlayerInfo[extraid][pPosX], PlayerInfo[extraid][pPosY],PlayerInfo[extraid][pPosZ],
                PlayerInfo[extraid][pHealth], PlayerInfo[extraid][pArmour], PlayerInfo[extraid][pInt], PlayerInfo[extraid][pWorld],
                PlayerInfo[extraid][pPayDay], PlayerInfo[extraid][pPayCheck], PlayerInfo[extraid][pBank], PlayerInfo[extraid][pConnectTime], PlayerInfo[extraid][pMember],
                PlayerInfo[extraid][pRank], PlayerInfo[extraid][pWeed], PlayerInfo[extraid][pCrack],PlayerInfo[extraid][pCocaine],
                PlayerInfo[extraid][pHouseKey], PlayerInfo[extraid][pBizzKey],PlayerInfo[extraid][pCarKey1], PlayerInfo[extraid][pCarKey2], PlayerInfo[extraid][pCarKey3], PlayerInfo[extraid][pAdmin], PlayerInfo[extraid][pHelper],
                PlayerInfo[extraid][pBanned], PlayerInfo[extraid][pDrugTime], PlayerInfo[extraid][pHouseEnter], PlayerInfo[extraid][pBizzEnter],
                PlayerInfo[extraid][pGunLic], PlayerInfo[extraid][pDriveLic], PlayerInfo[extraid][pPhoneNum], PlayerInfo[extraid][pJob], PlayerInfo[extraid][pJailed],
                PlayerInfo[extraid][pJailTime], PlayerInfo[extraid][pWeapon][0],
                PlayerInfo[extraid][pWeapon][1], PlayerInfo[extraid][pWeapon][2], PlayerInfo[extraid][pWeapon][3],
                PlayerInfo[extraid][pWeapon][4], PlayerInfo[extraid][pWeapon][5], PlayerInfo[extraid][pWeapon][6],
                PlayerInfo[extraid][pWeapon][7], PlayerInfo[extraid][pWeapon][8], PlayerInfo[extraid][pWeapon][9],
                PlayerInfo[extraid][pWeapon][10], PlayerInfo[extraid][pWeapon][11], PlayerInfo[extraid][pWeapon][12],
                PlayerInfo[extraid][pAmmo][0],PlayerInfo[extraid][pAmmo][1],PlayerInfo[extraid][pAmmo][2],
                PlayerInfo[extraid][pAmmo][3], PlayerInfo[extraid][pAmmo][4], PlayerInfo[extraid][pAmmo][5],
                PlayerInfo[extraid][pAmmo][6], PlayerInfo[extraid][pAmmo][7], PlayerInfo[extraid][pAmmo][8],
                PlayerInfo[extraid][pAmmo][9], PlayerInfo[extraid][pAmmo][10], PlayerInfo[extraid][pAmmo][11],
                PlayerInfo[extraid][pAmmo][12], PlayerInfo[extraid][pWantedLevel], PlayerInfo[extraid][pDonateRank],
                PlayerInfo[extraid][pMask], PlayerInfo[extraid][pMaskID], PlayerInfo[extraid][pCellphone],
                PlayerInfo[extraid][pCrimes], PlayerInfo[extraid][pArrest], PlayerInfo[extraid][pChanges], ustring,
                ustring, PlayerInfo[extraid][pAdmName], extraid, extraid, PlayerInfo[extraid][pSex], PlayerInfo[extraid][pTut],
                PlayerInfo[extraid][pCarTicket], extraid, extraid, extraid, extraid, extraid, ustring);
                }
                new ppname[24];
                GetPlayerName(extraid, ppname, 24);
                PlayerInfo[extraid][pCarTicket] = CMySQL_Set(ppname, "Accounts", "Username", "CarTicket");
                PlayerInfo[extraid][pTut] = CMySQL_Set(ppname, "Accounts", "Username", "Tutorial");
                PlayerInfo[extraid][pSex] = CMySQL_Set(ppname, "Accounts", "Username", "Sex");
                PlayerInfo[extraid][pChanges] = CMySQL_Set(ppname, "Accounts", "Username", "Changes");
                strmid(PlayerInfo[extraid][pAdmName], CMySQL_Get(ppname, "Accounts", "Username", "AdmName"), 0, strlen(CMySQL_Get(ppname, "Accounts", "Username", "AdmName")), 255);
                mysql_free_result();
                OnLoginInit(extraid);
            }
            else
            {
                if(PlayerInfo[extraid][pWrongPassword] >= 5)
                {
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: You have been banned for entering the wrong password in five times.");
                    BanEx(extraid,"Wrong Password");
                }
                else
                {
                    PlayerInfo[extraid][pWrongPassword]++;
                    SendClientMessage(extraid,COLOR_LIGHTRED,"SERVER: Invalid password.");
                }
            }
        }
    }
    return 1;
}
Code:
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2537) : error 035: argument type mismatch (argument 4)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2538) : error 035: argument type mismatch (argument 4)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2539) : error 035: argument type mismatch (argument 4)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2540) : error 035: argument type mismatch (argument 4)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2541) : error 035: argument type mismatch (argument 4)
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2545) : error 002: only a single statement (or expression) can follow each "case"
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2559) : error 054: unmatched closing brace ("}")
D:\SA-MP\gamemodes\UG-RPalpha.pwn(2560) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


8 Errors.
__________________

Last edited by Ahrim; 10/07/2012 at 12:00 PM.
Ahrim is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I'd greatly appreciate some help Hawkseye Scripting Help 1 09/03/2012 05:28 AM
Help me please, it'd be appreciated Andregood Help Archive 7 29/04/2011 02:28 PM
I really need help with my .pwn file.. help is greatly appreciated Jing_Chan Help Archive 16 20/03/2011 11:27 PM
Help Appreciated Max_Coldheart Help Archive 1 18/01/2011 02:51 PM
Help appreciated Marclang Help Archive 2 23/05/2009 12:09 PM


All times are GMT. The time now is 10:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.