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


Messages In This Thread
Need help - by ChromeMenu - 12.04.2014, 07:38
Re: Need help - by PrivatioBoni - 12.04.2014, 08:12
Re: Need help - by Equuuuin0X - 12.04.2014, 08:16

Forum Jump:


Users browsing this thread: 2 Guest(s)