GPS command, 4 errors..
#1

The command:
pawn Код:
//==============================================================================
// GPS
//==============================================================================

CMD:gps(playerid,params[]) {

    if(PlayerInfo[playerid][Level] >= 3)
    return SendClientMessage(playerid,red,"ERROR: You need to be Level 3 to use this Command");

    if(PlayerInfo[playerid][SpecType] != ADMIN_SPEC_TYPE_NONE)
    return SendClientMessage(playerid, red, "ERROR: First Disable the Spectating System! (/lspecoff)");

    if(!strlen(params))
    return SendClientMessage(playerid,LIGHTBLUE2, "Usage: /gps [PlayerID/Off]") &&
    SendClientMessage(playerid, orange, "Function: Will enable GPS do find a specified Player (If you are in a race, do not use)");

    if(strcmp(params,"off",true) == 0)
    {
        GameTextForPlayer(playerid,"~w~Gps ~r~Off!",3000,3);
Line 14717:IsDisable[playerid] = 0;
        PlayerInfo[playerid][pGps] = -1;
        return 1;
    }
    new player1;
    new string2[128];
    player1 = strval(params);
    if(player1 == playerid)
    return SendClientMessage(playerid,red,"ERROR: You can not Find yourself!");

    if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel])
    return SendClientMessage(playerid,red,"ERROR: You can not localize an Administrator!");

    if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
    {
        new playername[MAX_PLAYER_NAME];
        GetPlayerName(player1, playername, sizeof(playername));
        format(string2, sizeof(string2),"<LuxGps> System Enabled in the Player - '%s'", playername);
        SendClientMessage(playerid, 0xDC686BAA, string2);
        GameTextForPlayer(playerid,"~w~Gps ~g~On!",3000,3);
        PlayerInfo[playerid][pGps] = player1;
        }
    else return SendClientMessage(playerid,red,"ERROR: Player is not connected);
    return 1;
    }
The Errors:
pawn Код:
C:\Users\Ole Kristian\Desktop\San Andreas Server\gamemodes\SATDM~RP.pwn(14717) : error 028: invalid subscript (not an array or too many subscripts): "IsDisable"
C:\Users\Ole Kristian\Desktop\San Andreas Server\gamemodes\SATDM~RP.pwn(14717) : warning 215: expression has no effect
C:\Users\Ole Kristian\Desktop\San Andreas Server\gamemodes\SATDM~RP.pwn(14717) : error 001: expected token: ";", but found "]"
C:\Users\Ole Kristian\Desktop\San Andreas Server\gamemodes\SATDM~RP.pwn(14717) : error 029: invalid expression, assumed zero
C:\Users\Ole Kristian\Desktop\San Andreas Server\gamemodes\SATDM~RP.pwn(14717) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
GPS command, 4 errors.. - by OleKristian95 - 05.04.2012, 03:32
Re: GPS command, 4 errors.. - by Ballu Miaa - 05.04.2012, 03:35
Re: GPS command, 4 errors.. - by Chris1337 - 05.04.2012, 03:39
Re: GPS command, 4 errors.. - by Cjgogo - 05.04.2012, 03:55
Re: GPS command, 4 errors.. - by Ballu Miaa - 05.04.2012, 04:19
Re: GPS command, 4 errors.. - by OleKristian95 - 05.04.2012, 04:50
Re: GPS command, 4 errors.. - by Chris1337 - 05.04.2012, 04:52
Re: GPS command, 4 errors.. - by OleKristian95 - 05.04.2012, 04:55
Re: GPS command, 4 errors.. - by Chris1337 - 05.04.2012, 04:58
Re: GPS command, 4 errors.. - by OleKristian95 - 05.04.2012, 04:59

Forum Jump:


Users browsing this thread: 1 Guest(s)