28.09.2014, 19:59
error 035: argument type mismatch (argument 1)
Plugin Used : StrickenKid
How fix it ?
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(playerid, PlayerInfo[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(playerid, PlayerInfo[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!
}