Need help
#1

Код:
error 025: function heading differs from prototype
warning 213: tag mismatch
error 024: "break" or "continue" is out of context
Код:
public OnPlayerClickMap(playerid, FLoat:fX, Float:fY, Float:fZ)
{
    if(tele_Enabled[playerid] == 1 && PlayerInfo[playerid][pAdmin] >= 2)
    {
        SetPlayerPosFindZ(playerid, fX, fY, fZ);
    }
    else break;
    return 1;
}

CMD:maptp(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, WHITE, "You cannot use this command!");

    if(tele_Enabled[playerid] == 0)
    {
        tele_Enabled[playerid] = 1;
        SendClientMessage(playerid, WHITE, "You have enabled map teleporting.");
    }
    else
    {
        tele_Enabled[playerid] = 0;
        SendClientMessage(playerid, WHITE, "You have disabled map teleporting.");
    }
    return 1;
}
Errors:
Код:
public OnPlayerClickMap(playerid, FLoat:fX, Float:fY, Float:fZ)
SetPlayerPosFindZ(playerid, fX, fY, fZ);
else break;
Reply
#2

Remove the
pawn Код:
else break;
It should compile without it.
Also, you have "FLoat" when it should be "Float". Fixing that little mistake should also eradicate the tag mismatch error.
Reply
#3

first warning,

you put ''FLoat'' in ''FLoat:fX'', it should be ''Float'' capitalism could causes errors.

2nd error is depending on first error, so 1st error fixed, this one should be fixed aswell.

not sure about 3rd though

try to remove it as it is not effecting anything.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)