Map teleport bugged
#7

Quote:
Originally Posted by ChromeMenu
Посмотреть сообщение
This is what I have so far.

Код:
new TeleEnabled[MAX_PLAYERS];
public OnPlayerClickMap(playerid, Float:fX, Float:fY, Float:fZ)
{
    if(TeleEnabled[playerid] == 1 && PlayerInfo [playerid][AdminLevel] >= 2)
    {
    SetPlayerPosFindZ(playerid, fX, fY, fZ);
    }
}

CMD:maptp(playerid,params[])
{
    if(TeleEnabled[playerid] == 0)
    {
    TeleEnabled[playerid] = 1;
    SendClientMessage(playerid,WHITE,"You have enabled map teleporting!");
    return 0;
    }
    if(TeleEnabled[playerid] == 1)
    {
    TeleEnabled[playerid] = 0;
    SendClientMessage(playerid,WHITE,"You have disabled map teleporting!");
    return 0;
    }
    return 1;
}
Код:
 error 017: undefined symbol "PlayerInfo"
 warning 215: expression has no effect
 error 001: expected token: ";", but found "]"
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line
Top on gamemode

enum pInfo
{
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Reply


Messages In This Thread
Map teleport bugged - by ChromeMenu - 01.04.2014, 23:47
Re: Map teleport bugged - by DerickClark - 02.04.2014, 00:14
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 00:17
Re: Map teleport bugged - by DerickClark - 02.04.2014, 00:18
Re: Map teleport bugged - by Jefff - 02.04.2014, 00:19
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 00:30
Re: Map teleport bugged - by DerickClark - 02.04.2014, 00:44
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 01:10
Re: Map teleport bugged - by K9IsGodly - 02.04.2014, 01:15
Re: Map teleport bugged - by ChromeMenu - 02.04.2014, 01:18

Forum Jump:


Users browsing this thread: 4 Guest(s)