#1

I have a tele script, and it doesnt work. I have all of the setplayerpos ect ect but pawno says its unused when it obv isnt

heres the code

http://pastebin.com/WCCW4PNq
Reply
#2

Firstly, why do you have a bunch of messages in OnPlayerCommandText? Secondly, use the ["pawn"] [/"pawn"] (without the "") brackets Thanks.

Also, forgot to add it's:

pawn Код:
SetPlayerPos(playerid,X,Y,Z);
not

pawn Код:
SetPlayerPosition(playerid,X,Y,Z);
Reply
#3

i do that, then look
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(51) : warning 217: loose indentation
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(51) : error 017: undefined symbol "quadparkour"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(56) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(59) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(60) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(64) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(64) : error 017: undefined symbol "racetrack"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(6 : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(72) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(75) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(79) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(79) : error 017: undefined symbol "xslide"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(84) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(87) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(8 : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(92) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(92) : error 017: undefined symbol "grotto"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(94) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(95) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(99) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(99) : error 017: undefined symbol "spiral"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(107) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(10 : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(113) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(113) : error 017: undefined symbol "andro"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(115) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(117) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(121) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(121) : error 017: undefined symbol "skiramp"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(125) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(129) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(132) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(136) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(136) : error 017: undefined symbol "drift"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(13 : error 017: undefined symbol "cmd_drifts"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(141) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(141) : error 017: undefined symbol "drifts"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(14 : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(14 : error 017: undefined symbol "sfdrift"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(150) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(151) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(155) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(155) : error 017: undefined symbol "lvdrift"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(157) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(15 : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(162) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(162) : error 017: undefined symbol "lsdive"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(164) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(165) : error 017: undefined symbol "TeleMSG"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(170) : warning 225: unreachable code
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFC4C4~ 1.PWN(170) : error 017: undefined symbol "tunneljump"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#4

Here, try this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(idx,cmdtext);
    if(strcmp(cmd,"/teleports",true)==0)
    {
        SendClientMessage(playerid, COLOR_INDIGO, "----- Teleports ----------------------------------------------------------");
        SendClientMessage(playerid, COLOR_WHITE, "StuntZones :: /SF /AA /LV /Chilliad /SFair /LSair /LVair /LVdrift /SFdrift /beach /disney");
        SendClientMessage(playerid, COLOR_SILVER, "Jumps :: /SFjump /hugejump /glassjump /bikejump /waterjump /tunneljump /pipejump /qjump /bigjump /skiramp");
        SendClientMessage(playerid, COLOR_GOLD, "Races :: /racemap /karttrack");
        SendClientMessage(playerid, COLOR_PINK, "CRAZY :: /xslide /loop /drop /gd /lf /tugfun /SKC /tr /pipe /carsumo /hp /slide");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "SmallZones :: /monster /boats /bowl /NRGbowl /bc /ball");
        SendClientMessage(playerid, COLOR_GREEN, "Skillz :: /bikeskills /bmx /bikefun /wallride /skatepark /monsterchallenge");
        SendClientMessage(playerid, COLOR_GREY, "Misc :: /wang /otto /hippy /truckstop /LSdive /grotto /andro");
        SendClientMessage(playerid, COLOR_FIREBRICK, "DMs :: /battlefield /rocket /war /tankdm");
        SendClientMessage(playerid, COLOR_WHITE, "Tune: /loco /arch /trans /ps");
        SendClientMessage(playerid, COLOR_INDIGO, "--------------------------------------------------------------------------");
        return 1;
    }
    if(strcmp(cmd,"/quadparkour",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RemovePlayerFromVehicle(playerid);
        }
        SetPlayerPos(playerid,-2904.806, 880.312, 5.354);
        TeleMSG(playerid, "Quadparkour (/quadparkour)");
        return 1;
    }
    if(strcmp(cmd,"/racetrack",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid),9490.785, -862.395, 7.970);
        }
        SetPlayerPos(playerid,9487.672, -839.953, 7.970);
        TeleMSG(playerid, "Racetrack (/racetrack)");
        return 1;
    }
    if(strcmp(cmd,"/xslide",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RemovePlayerFromVehicle(playerid);
        }
        SetPlayerPos(playerid,1862.760, 1337.315, 55.933);
        TeleMSG(playerid, "XSlide (/xslide)");
        return 1;
    }
    if(strcmp(cmd,"/lounge",true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] == 0)
        {
            SendClientMessage(playerid, COLOR_RED, "ERROR: You are not authorized to use this command!");
            return 1;
        }
        else
        {
            SetPlayerPos(playerid, 445.5988, -6.7742, 1000.7344);
            SetPlayerInterior(playerid, 1);
            SendClientMessage(playerid, COLOR_GREENYELLOW, "Welcome to the admin lounge!");
        }
        return 1;
    }
    if(strcmp(cmd,"/grotto",true) == 0)
    {
        SetPlayerPos(playerid,-980.7980, 963.5360, 34.5781);
        TeleMSG(playerid, "SaS Grotto (/grotto)");
        return 1;
    }
    if(strcmp(cmd,"/spiral",true) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, COLOR_GREENYELLOW, "Get a vehicle from /otto or /wang first or spawn one using /carspawn!");
            return 1;
        }
        SetVehiclePos(GetPlayerVehicleID(playerid),24.8275, 278.3997, 1199.8948);
        TeleMSG(playerid, "Spiral (/spiral)");
        SetPVarInt(playerid, "doingStunt", 4);
        return 1;
    }
    if(strcmp(cmd,"/andro",true) == 0)
    {
        SetPlayerPos(playerid,-2184.5669, 1171.0330, 1700.4305);
        GivePlayerWeapon(playerid, 46, 1);
        TeleMSG(playerid, "Andro (/andro)");
        return 1;
    }
    if(strcmp(cmd,"/skiramp",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid),-1331.3870,-1661.8210,538.1722);
        }
        else
        {
            SetPlayerPos(playerid,-1331.3870,-1661.8210,538.1722);
        }
        TeleMSG(playerid, "SKIRamp (/skiramp)");
        return 1;
    }
    if(strcmp(cmd,"/drifts",true) == 0)
    {
        SendClientMessage(playerid, COLOR_PINK, "DRIFTS:");
        SendClientMessage(playerid, COLOR_GOLD, " -> /lvdrift, /sfdrift");
        return 1;
    }
    if(strcmp(cmd,"/sfdrift",true) == 0)
    {
        SetPlayerPos(playerid, -2410.9963, -600.7848, 132.3277);
        TeleMSG(playerid, "SFDrift (/sfdrift)");
        return 1;
    }
    if(strcmp(cmd,"/lvdrift",true) == 0)
    {
        SetPlayerPos(playerid, -344.308, 1528.474, 75.159);
        TeleMSG(playerid, "LVDrift (/lvdrift)");
        return 1;
    }
    if(strcmp(cmd,"/lsdive",true) == 0)
    {
        SetPlayerPos(playerid, 1544.5403, -1348.7823, 329.4739);
        TeleMSG(playerid, "LSDive (/lsdive)");
        GivePlayerWeapon(playerid, 46, 1);
        return 1;
    }
    if(strcmp(cmd,"/skatepark",true) == 0)
    {
        new tele;
        tele = random(2);
        switch(tele)
        {
            case 0: SetPlayerPos(playerid, 1907.542, -1354.829, 13.103);
            case 1: SetPlayerPos(playerid, 1917.501, -1404.901, 13.179);
        }
        TeleMSG(playerid, "/skatepark");
        return 1;
    }
    if(strcmp(cmd,"/lvair",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RemovePlayerFromVehicle(playerid);
        }
        SetPlayerPos(playerid, 1302.729, 1297.582, 13.055);
        TeleMSG(playerid, "/lvair");
        return 1;
    }
    return 1;
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
I haven't done all the teleports, but you get the idea... Remember to remove the COMMAND: one's too.
Reply
#5

heres telemsg

pawn Код:
TeleMSG(playerid, telename[])
{
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

    if(TPmsgs == 1)
    {
        if(GetPVarInt(playerid, "sendTPmsgs") == 1)
        {
            format(tmp, sizeof(tmp), ":: %s(%i) has gone to %s", PlayerName, playerid, telename);
            foreachex(Player, i)
            {
                if(GetPVarInt(i, "seeTPmsgs") == 1)
                {
                    SendClientMessage(i, COLOR_BRIGHTGREEN, tmp);
                }
            }
        }
    }
and here are errors

C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFSFV2~ 4.PWN(37) : error 035: argument type mismatch (argument 1)
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFSFV2~ 4.PWN(36) : warning 203: symbol is never used: "idx"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFSFV2~ 4.PWN(192) : error 017: undefined symbol "PlayerName"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFSFV2~ 4.PWN(192) : error 017: undefined symbol "PlayerName"
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFSFV2~ 4.PWN(192) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Will\Desktop\SANAND~3\GAMEMO~1\SFSFV2~ 4.PWN(192) : fatal error 107: too many error messages on one line
Reply
#6

Put this at the top of the script:

pawn Код:
forward TeleMSG(playerid, teleport[]);
Delete the current OnPlayerCommandText and put this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext,idx);
    if(strcmp(cmd,"/teleports",true)==0)
    {
        SendClientMessage(playerid, COLOR_INDIGO, "----- Teleports ----------------------------------------------------------");
        SendClientMessage(playerid, COLOR_WHITE, "StuntZones :: /SF /AA /LV /Chilliad /SFair /LSair /LVair /LVdrift /SFdrift /beach /disney");
        SendClientMessage(playerid, COLOR_SILVER, "Jumps :: /SFjump /hugejump /glassjump /bikejump /waterjump /tunneljump /pipejump /qjump /bigjump /skiramp");
        SendClientMessage(playerid, COLOR_GOLD, "Races :: /racemap /karttrack");
        SendClientMessage(playerid, COLOR_PINK, "CRAZY :: /xslide /loop /drop /gd /lf /tugfun /SKC /tr /pipe /carsumo /hp /slide");
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "SmallZones :: /monster /boats /bowl /NRGbowl /bc /ball");
        SendClientMessage(playerid, COLOR_GREEN, "Skillz :: /bikeskills /bmx /bikefun /wallride /skatepark /monsterchallenge");
        SendClientMessage(playerid, COLOR_GREY, "Misc :: /wang /otto /hippy /truckstop /LSdive /grotto /andro");
        SendClientMessage(playerid, COLOR_FIREBRICK, "DMs :: /battlefield /rocket /war /tankdm");
        SendClientMessage(playerid, COLOR_WHITE, "Tune: /loco /arch /trans /ps");
        SendClientMessage(playerid, COLOR_INDIGO, "--------------------------------------------------------------------------");
        return 1;
    }
    if(strcmp(cmd,"/quadparkour",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RemovePlayerFromVehicle(playerid);
        }
        SetPlayerPos(playerid,-2904.806, 880.312, 5.354);
        TeleMSG(playerid, "Quadparkour (/quadparkour)");
        return 1;
    }
    if(strcmp(cmd,"/racetrack",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid),9490.785, -862.395, 7.970);
        }
        SetPlayerPos(playerid,9487.672, -839.953, 7.970);
        TeleMSG(playerid, "Racetrack (/racetrack)");
        return 1;
    }
    if(strcmp(cmd,"/xslide",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RemovePlayerFromVehicle(playerid);
        }
        SetPlayerPos(playerid,1862.760, 1337.315, 55.933);
        TeleMSG(playerid, "XSlide (/xslide)");
        return 1;
    }
    if(strcmp(cmd,"/lounge",true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] == 0)
        {
            SendClientMessage(playerid, COLOR_RED, "ERROR: You are not authorized to use this command!");
            return 1;
        }
        else
        {
            SetPlayerPos(playerid, 445.5988, -6.7742, 1000.7344);
            SetPlayerInterior(playerid, 1);
            SendClientMessage(playerid, COLOR_GREENYELLOW, "Welcome to the admin lounge!");
        }
        return 1;
    }
    if(strcmp(cmd,"/grotto",true) == 0)
    {
        SetPlayerPos(playerid,-980.7980, 963.5360, 34.5781);
        TeleMSG(playerid, "SaS Grotto (/grotto)");
        return 1;
    }
    if(strcmp(cmd,"/spiral",true) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, COLOR_GREENYELLOW, "Get a vehicle from /otto or /wang first or spawn one using /carspawn!");
            return 1;
        }
        SetVehiclePos(GetPlayerVehicleID(playerid),24.8275, 278.3997, 1199.8948);
        TeleMSG(playerid, "Spiral (/spiral)");
        SetPVarInt(playerid, "doingStunt", 4);
        return 1;
    }
    if(strcmp(cmd,"/andro",true) == 0)
    {
        SetPlayerPos(playerid,-2184.5669, 1171.0330, 1700.4305);
        GivePlayerWeapon(playerid, 46, 1);
        TeleMSG(playerid, "Andro (/andro)");
        return 1;
    }
    if(strcmp(cmd,"/skiramp",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SetVehiclePos(GetPlayerVehicleID(playerid),-1331.3870,-1661.8210,538.1722);
        }
        else
        {
            SetPlayerPos(playerid,-1331.3870,-1661.8210,538.1722);
        }
        TeleMSG(playerid, "SKIRamp (/skiramp)");
        return 1;
    }
    if(strcmp(cmd,"/drifts",true) == 0)
    {
        SendClientMessage(playerid, COLOR_PINK, "DRIFTS:");
        SendClientMessage(playerid, COLOR_GOLD, " -> /lvdrift, /sfdrift");
        return 1;
    }
    if(strcmp(cmd,"/sfdrift",true) == 0)
    {
        SetPlayerPos(playerid, -2410.9963, -600.7848, 132.3277);
        TeleMSG(playerid, "SFDrift (/sfdrift)");
        return 1;
    }
    if(strcmp(cmd,"/lvdrift",true) == 0)
    {
        SetPlayerPos(playerid, -344.308, 1528.474, 75.159);
        TeleMSG(playerid, "LVDrift (/lvdrift)");
        return 1;
    }
    if(strcmp(cmd,"/lsdive",true) == 0)
    {
        SetPlayerPos(playerid, 1544.5403, -1348.7823, 329.4739);
        TeleMSG(playerid, "LSDive (/lsdive)");
        GivePlayerWeapon(playerid, 46, 1);
        return 1;
    }
    if(strcmp(cmd,"/skatepark",true) == 0)
    {
        new tele;
        tele = random(2);
        switch(tele)
        {
            case 0: SetPlayerPos(playerid, 1907.542, -1354.829, 13.103);
            case 1: SetPlayerPos(playerid, 1917.501, -1404.901, 13.179);
        }
        TeleMSG(playerid, "/skatepark");
        return 1;
    }
    if(strcmp(cmd,"/lvair",true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            RemovePlayerFromVehicle(playerid);
        }
        SetPlayerPos(playerid, 1302.729, 1297.582, 13.055);
        TeleMSG(playerid, "/lvair");
        return 1;
    }
    return 1;
}
The new TeleMSG:

pawn Код:
public TeleMSG(playerid, teleport[])
{
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
    new string[128];
    if(TPmsgs == 1)
    {
        if(GetPVarInt(playerid, "sendTPmsgs") == 1)
        {
          format(string, sizeof(string), ":: %s(%i) has gone to %s", PlayerName, playerid, teleport);
        }
        for(new i = 0; i < GetMaxPlayers(); i++)
        {
            if(GetPVarInt(i, "seeTPmsgs") == 0)
            {
                return 1;
            }
            else
            {
                SendClientMessage(i,COLOR_WHITE,string);
            }
        }
    }
    return 1;
}
Reply
#7

nope, still no workie

EDIT:

fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)