SA-MP Forums Archive
error 035: argument type mismatch (argument 1) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 035: argument type mismatch (argument 1) (/showthread.php?tid=539575)



error 035: argument type mismatch (argument 1) - Hostoxide - 28.09.2014

error 035: argument type mismatch (argument 1)

Plugin Used : StrickenKid

PHP код:
while(mysql_fetch_row(Query))
    
// here after the server has selected the user
    //from the database and stored its data we extract that data onto our enums.
    
{
        
mysql_fetch_int("id"PlayerInfo[playerid][ID2]);
        
// the special identifier of a user called "id"
        
mysql_fetch_int("Level"PlayerInfo[playerid][Level]);
        
// the admin level of the player
        
mysql_fetch_int("Score"PlayerInfo[playerid][Score]); SetPlayerScore(playeridPlayerInfo[playerid][Score]);
        
// here we fetch the score and save it to the enum and also save it to the server by using setplayerscore
        
mysql_fetch_int("Money"PlayerInfo[playerid][Money]); GivePlayerCash(playeridPlayerInfo[playerid][Money]);
        
// here we fetch the score and save it to the enum and also save it to the server by using setplayerscore
        
mysql_fetch_int("Kills"PlayerInfo[playerid][Kills]);
        
// the amount of kills a player has
        
mysql_fetch_int("Deaths"PlayerInfo[playerid][Deaths]);
        
// the amount of deaths a player has
        //
        // the way to fetch a users stats from the database is:
        //mysql_fetch_int("table_name", variable_to_store_in);  remember the "table_name" is case sensitive!
    

How fix it ?


Re: error 035: argument type mismatch (argument 1) - Hostoxide - 28.09.2014

reply pleaseeeeeeeee


Re: error 035: argument type mismatch (argument 1) - Crayder - 28.09.2014

Show me PlayerInfo enum, and specify which line it is that your compiler says it is..


Re: error 035: argument type mismatch (argument 1) - Hostoxide - 29.09.2014

Quote:
Originally Posted by Crayder
Посмотреть сообщение
Show me PlayerInfo enum, and specify which line it is that your compiler says it is..
Saying this all line


Re: error 035: argument type mismatch (argument 1) - Crayder - 29.09.2014

Quote:
Originally Posted by Hostoxide
Посмотреть сообщение
Saying this all line
No, there is a specific line that the compiler will tell you... Which line is it... :P