Jump to content
  • 0

Ajutor va rog.


zdupx

Question

Am luat din GM SkyZone comanda /ooc si ma trezesc cu erroarea asta:

C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : error 028: invalid subscript (not an array or too many subscripts): "PlayerInfo"
C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : warning 215: expression has no effect
C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\saveG RPG\gamemodes\saveG.pwn(732) : 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.
r.

Comanda /ooc : [pawn]if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] == 0)

        {

            SendClientMessage(playerid, COLOR_GREY, " Inca nu esti logat!");

            return 1;

        }

        if(PlayerOOC[playerid] == -1)

            {

SendClientMessage(playerid,COLOR_1RED,"Poti trimite un mesaj ooc doar o data la 1 Minut !");

return 1;

            }

if ((noooc) && PlayerInfo[playerid][pAdminServer] < 1)

{

SendClientMessage(playerid, COLOR_GRAD2, " Canalul OOC este oprit!");

return 1;

}

if(PlayerInfo[playerid][pMuted] == 1 && PlayerInfo[playerid][pMuteTime] > 0)

{

SendClientMessage(playerid, TEAM_CYAN_COLOR, "  Nu poti vorbi, esti pe MUTE !");

return 1;

}

if(PlayerInfo[playerid][pBiggestFish] == 112) return SendClientMessage(playerid, COLOR_GRAD2, "Ai /aban, nu mai poti folosi chatul ooc (/o) pana nu primesti /aunban");

GetPlayerName(playerid, sendername, sizeof(sendername));

new length = strlen(cmdtext);

while ((idx < length) && (cmdtext[idx] <= ' '))

{

idx++;

}

new offset = idx;

new result[356];

while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))

{

result[idx - offset] = cmdtext[idx];

idx++;

}

result[idx - offset] = EOS;

if(!strlen(result))

{

SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Info{FFFFFF}: (/o)oc [ooc chat]");

return 1;

}

if(PlayerInfo[playerid][pAdminServer] >= 6000)

{

format(string, sizeof(string), "{FF6600}(( {FFFFFF}Owner {F81414}%s{FFFFFF}: {FFFFFF}%s {FF6600}))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

}

if(PlayerInfo[playerid][pAdminServer] == 1339)

{

format(string, sizeof(string), "{FFFFFF}(( Owner {F81414}%s{FFFFFF} : {FFFFFF}%s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

SetTimerEx("ResetOOC", 10000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

            if(PlayerInfo[playerid][pAdminServer] == 1338)

{

format(string, sizeof(string), "{FFFFFF}(( Co-Owner {FF8000}%s{FFFFFF} : %s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

            if(PlayerInfo[playerid][pAdminServer] == 1337)

{

format(string, sizeof(string), "{FFFFFF}(( Super Admin {FFBF00}%s{FFFFFF} : %s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

if(PlayerInfo[playerid][pAdminServer] == 4)

{

format(string, sizeof(string), "{FFFFFF}(( VIP Admin {4000FF}%s{FFFFFF} : %s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

if(PlayerInfo[playerid][pAdminServer] == 3)

{

format(string, sizeof(string), "{FFFFFF}(( Extra Admin {4080FF}%s{FFFFFF} : %s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

if(PlayerInfo[playerid][pAdminServer] == 2)

{

format(string, sizeof(string), "{FFFFFF}(( Advanced Admin {00BFFF}%s{FFFFFF} : %s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

SetTimerEx("ResetOOC", 60000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

if(PlayerInfo[playerid][pAdminServer] == 1)

{

format(string, sizeof(string), "{FFFFFF}(( Demo Admin {80FFFF}%s{FFFFFF} : %s ))",sendername, result);

OOCOff(COLOR_OOC,string);

printf("%s", string);

            SetTimerEx("ResetOOC", 100000, 0, "d", playerid);

    PlayerOOC[playerid] = -1;

}

}

return 1;

}

[/pawn]

<a href="http://www.game-state.eu/94.60.40.50:7777/"><img src="http://www.game-state.eu/94.60.40.50:7777/n-560x95_FFFFFF_FFFFFF_000000_000000.png" alt="www.Game-State.eu" style="border-style: none;" /></a>

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.