warning 202 help
#1

Hi, i have tried to update my script abit, uploaded the script with warning 202 (warning 202: number of arguments does not match definition) and the whole server crashed because of this error.

hereґs the code:
Код:
forward OnPlayerLogin(playerid);
forward OnPlayerLoginAttempt(playerid);

public OnLoginAttempt(playerid) {

    .........

    OnPlayerLogin(playerid);
    return 1;
}

public OnPlayerLogin(playerid) {

    ...........

    return 1;
}
it gives an warning on "OnPlayerLogin(playerid);" (Line 972). Anyone who can help me?
Reply
#2

I added the ......... Just to save space and be more easier to read. I havent added any.... In the real code. But when complie it set an error in "OnPlayerLogin(playerid);"
Reply
#3

Try this

pawn Код:
forward OnPlayerLogin(playerid);
forward OnPlayerLoginAttempt(playerid);

public OnLoginAttempt(playerid)
{

    .........

    SetTimerEx("OnPlayerLogin", 100, false, "i", playerid);
    return 1;
}

public OnPlayerLogin(playerid)
{

    ...........

    return 1;
}
Reply
#4

OnPlayerLoginAttempt(playerid) does not equals to OnLoginAttempt(playerid)
Reply
#5

@JFF Thanks, it works now!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)