Whats Wrong Here??
#1

pawn Код:
LoginPlayer(playerid)
{
    if(ServerInfo[GiveMoney] == 1) {ResetPlayerMoney(playerid); GivePlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money") ); }
    dUserSetINT(PlayerName2(playerid)).("loggedin",1);
    PlayerInfo[playerid][Deaths] = (dUserINT(PlayerName2(playerid)).("deaths"));
    PlayerInfo[playerid][Kills] = (dUserINT(PlayerName2(playerid)).("kills"));
    PlayerInfo[playerid][VipLevel] = (dUserINT(PlayerName2(playerid)).("Viplevel"));
    PlayerInfo[playerid][Fleader] = dUserSetINT(PlayerName2(playerid)).("Fleader"); //======5516 Line
    PlayerInfo[playerid][Fmember] = dUserSetINT(PlayerName2(playerid)).("Fmember"); //========5517 Line
    PlayerInfo[playerid][Level] = (dUserINT(PlayerName2(playerid)).("level"));
    PlayerInfo[playerid][Bank] = (dUserINT(PlayerName2(playerid)).("Bank"));
    PlayerInfo[playerid][Prods] = (dUserINT(PlayerName2(playerid)).("Prods"));
    PlayerInfo[playerid][RepairOffer] = (dUserINT(PlayerName2(playerid)).("RepairOffer"));
    PlayerInfo[playerid][Credit] = (dUserINT(PlayerName2(playerid)).("Credit"));
    PlayerInfo[playerid][Job] = (dUserINT(PlayerName2(playerid)).("Job"));
    PlayerInfo[playerid][hours] = dUserINT(PlayerName2(playerid)).("hours");
    PlayerInfo[playerid][mins] = dUserINT(PlayerName2(playerid)).("minutes");
    PlayerInfo[playerid][secs] = dUserINT(PlayerName2(playerid)).("seconds");
    PlayerInfo[playerid][Registered] = 1;
    PlayerInfo[playerid][LoggedIn] = 1;
}
Below Are Errors
PHP код:
(5516) : warning 202number of arguments does not match definition
(5517) : warning 202number of arguments does not match definition 
how to fix them please help
Reply
#2

show line 5516 5517
Reply
#3

see the login line i have shown lines there

try to slide scrollbar
Reply
#4

nobody is gona reply this i am in hurry please help me
Reply
#5

It says that your function dont have params as it should have.

Like:

SetPlayerPos(playerid, 1800.1234, 1234.2134);

This function doesn't have Float:Z coordinates
Reply
#6

You're missing another parenthesis ')' at the end of the function.
Reply
#7

pawn Код:
LoginPlayer(playerid)
{
    if(ServerInfo[GiveMoney] == 1) {ResetPlayerMoney(playerid); GivePlayerMoney(playerid, dUserINT(PlayerName2(playerid)).("money") ); }
    dUserSetINT(PlayerName2(playerid)).("loggedin",1);
    PlayerInfo[playerid][Deaths] = (dUserINT(PlayerName2(playerid)).("deaths"));
    PlayerInfo[playerid][Kills] = (dUserINT(PlayerName2(playerid)).("kills"));
    PlayerInfo[playerid][VipLevel] = (dUserINT(PlayerName2(playerid)).("Viplevel"));
    PlayerInfo[playerid][Fleader] = (dUserINT(PlayerName2(playerid)).("Fleader")); //====== Fixed
    PlayerInfo[playerid][Fmember] = (dUserINT(PlayerName2(playerid)).("Fmember"));
    PlayerInfo[playerid][Level] = (dUserINT(PlayerName2(playerid)).("level"));
    PlayerInfo[playerid][Bank] = (dUserINT(PlayerName2(playerid)).("Bank"));
    PlayerInfo[playerid][Prods] = (dUserINT(PlayerName2(playerid)).("Prods"));
    PlayerInfo[playerid][RepairOffer] = (dUserINT(PlayerName2(playerid)).("RepairOffer"));
    PlayerInfo[playerid][Credit] = (dUserINT(PlayerName2(playerid)).("Credit"));
    PlayerInfo[playerid][Job] = (dUserINT(PlayerName2(playerid)).("Job"));
    PlayerInfo[playerid][hours] = dUserINT(PlayerName2(playerid)).("hours");
    PlayerInfo[playerid][mins] = dUserINT(PlayerName2(playerid)).("minutes");
    PlayerInfo[playerid][secs] = dUserINT(PlayerName2(playerid)).("seconds");
    PlayerInfo[playerid][Registered] = 1;
    PlayerInfo[playerid][LoggedIn] = 1;
}
You were setting it instead of loading it. If you want to set it you have to dUserSetInt(PlayerName2(playerid).("seconds", VALUE);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)