Jump to content

gabydemocray

Membru
  • Posts

    143
  • Joined

  • Last visited

    Never

Posts posted by gabydemocray

  1. F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : error 028: invalid subscript (not an array or too many subscripts): "gNewb"
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : warning 215: expression has no effect
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : error 001: expected token: ";", but found "]"
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : error 029: invalid expression, assumed zero
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(18357) : 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.
    

    Linia:

    [pawn]18357: if(gNewb[playerid] == 1)

    {

        PlayerInfo[playerid][pNewbTimer] = 12;

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

    format(string, sizeof(string), "Admin Level 1: %s[%d]: %s", sendername, playerid ,result);

    if (PlayerInfo[playerid][pAdmin] == 2)[/pawn]

  2. Deci se ridica poarta sus da nu mai coboara jos:

    uitati cum am comanda:

    [pawn]//----------------------------------[bE-Gate]-----------------------------------------

        if(strcmp(cmdtext, "/poarta", true) == 0)

    {

        if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)

        {

        if(PlayerToPoint(10,playerid,785.38690186,-1152.45471191,25.34807777))

        {

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

                    MoveObject(BPD,785.57965088,-1151.99633789,36.90230560,5.0);

                    SetTimerEx("BPDclose",5000,false,"d",playerid);

                    format(string, sizeof(string), "* %s takes out a remote control and opens the gate *", sendername);

                    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

                }

                else

                {

                SendClientMessage(playerid, COLOR_WHITE, " You are not near the door !");

                }

            }

           

        }[/pawn]

    [pawn]public BPDclose()

    {

        MoveObject(begate,785.38690186,-1152.45471191,25.34807777,5.0);

    }[/pawn]

  3. MS ..

    cu astea ce fac?

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23805) : error 029: invalid expression, assumed zero
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23806) : error 001: expected token: ";", but found "{"
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23824) : warning 225: unreachable code
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(46931) : warning 219: local variable "newkeys" shadows a variable at a preceding level
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(46931) : warning 219: local variable "oldkeys" shadows a variable at a preceding level
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    2 Errors.
    

  4. F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(41997) : warning 213: tag mismatch
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(42002) : warning 213: tag mismatch
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(42040) : warning 213: tag mismatch
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(42056) : warning 213: tag mismatch
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(46910) : warning 235: public function lacks forward declaration (symbol "ResetRoadblockTimer")
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(46916) : warning 235: public function lacks forward declaration (symbol "RemoveRoadblock")
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(46928) : warning 213: tag mismatch
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(46929) : warning 213: tag mismatch
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    Header size:           9636 bytes
    Code size:          1938512 bytes
    Data size:          9204636 bytes
    Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)
    Total requirements:11169168 bytes
    
    8 Warnings.
    
    Liniile: 41997:
    		if (PlayerInfo[playerid][pRoadblock] != 0) return SendClientMessage(playerid, COLOR_GREY, "You can only deploy 1 roadblock at a time, type /rrb to remove your existing one.");
    
    42002
    	PlayerInfo[playerid][pRoadblock] = CreateObject(981, X, Y, Z, 0.0, 0.0, A+180);
    42040
    		if (PlayerInfo[playerid][pRoadblock] == 0)
    42056
    if(PlayerInfo[i][pRoadblock] != 0)
    46910 public ResetRoadblockTimer()
    {
    	roadblocktimer = 0;
    	return 1;
    }
    46916:public RemoveRoadblock(playerid)
    {
    	for(new i = 0; i < MAX_PLAYERS; i++)
    	{
    		if(IsPlayerConnected(i))
    		{
    			if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1)
    			{
    				DisablePlayerCheckpoint(i);
    			}
    		}
    	}
    46928	DestroyObject(PlayerInfo[playerid][pRoadblock]);
    46929	PlayerInfo[playerid][pRoadblock] = 0;
    	return 1;
    }

  5. [pawn]  public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

    {

    if (newkeys==KEY_FIRE)

    {

    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)

    {

    if(PlayerToPoint(10,playerid,1541.25183105, -1627.63208008, 15.15620422))

    {

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

    MoveObject(BPD,1540.4265,-1628.7733,24.3866,5.0);

    SetTimerEx("BPDclose",5000,false,"d",playerid);

    format(string, sizeof(string), "* %s takes out a remote control and opens the gate *", sendername);

    ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

    }

    }

    }

    return 1;

    }[/pawn]

    De la comanda asta primesc erorile astea :

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23802) : error 029: invalid expression, assumed zero
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23802) : error 017: undefined symbol "newkeys"
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23804) : error 017: undefined symbol "newkeys"
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(23821) : warning 225: unreachable code
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    
    3 Errors.
    

  6. am rezolvat alea au mai ramas astea :

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(12235) : warning 225: unreachable code
    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(15955) : warning 225: unreachable code
    Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase
    
    Header size:           9764 bytes
    Code size:          1956972 bytes
    Data size:          9236168 bytes
    Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)
    Total requirements:11219288 bytes
    
    2 Warnings.
    
    // Zones
    12235:for(new i = 0; i < sizeof(TurfInfo); i++)
    	{
    	    Turfs[i] = GangZoneCreate(TurfInfo[i][zMinX],TurfInfo[i][zMinY],TurfInfo[i][zMaxX],TurfInfo[i][zMaxY]);
    	}
    //-------------------------------------players---------------------------------------------------------------
    15955:if(strcmp(cmdtext, "/players off", true) == 0)
    	{
    		if(IsPlayerConnected(playerid))
    		{
    			PlayersStats[playerid] = 0;
    			SendClientMessage(playerid, COLOR_LIGHTRED," Players textdraw is now disabled !");
    			TextDrawHideForPlayer(playerid,Pplayers);
    		}
    	}

  7. nu e nimic :))

    Asteas erorile :

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(12251) : warning 225: unreachable code

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(16086) : warning 225: unreachable code

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(47046) : error 025: function heading differs from prototype

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    1 Error.

    Si liniile:

    47046: public UpdateSpeed (vehid)
    {
        new id = GetVehicleInfrontID (vehid);
    	if (id < 0)
    	{
       		TextDrawSetString (SpeedAndModel [vehid], "~b~N/A ~n~~r~N/A");
    	}
    
    //--------------------------------------------------------//sweeper\\-------------------------------------------------------
    16086:	if(strcmp(cmd, "/start", true) == 0)
    	{
    		if(IsPlayerConnected(playerid))
            {
    		    if(PlayerInfo[playerid][pCarLic] == 1)
    		    {
    	//34
    12251	AddStaticVehicleEx(421,1405.8300,-1786.8331,13.4291,89.1217,1, 1, 60000);/*Mayor 1st*///51
    	AddStaticVehicleEx(522,2954.429, 2974.064, 15, 0, 0, 0,6000000); // /*Aruncata By MousEY
    	AddStaticVehicleEx(596,1569.639000,-1710.859000,5.466783,1.0, -1, -1, 60000);/*CopCruiser*/
    	AddStaticVehicleEx(596,-2139.1995,-2393.7671,30.3452,140.7012, 0, 0, 60000);/*CopCruiser*/

  8. cand dau compile primesc aceste Warn uri:

    [pawn]F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(12248) : warning 225: unreachable code

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(16089) : warning 225: unreachable code

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(47049) : warning 235: public function lacks forward declaration (symbol "UpdateSpeed")

    F:\Gaby\Jocuri\xvcc\Replay\gamemodes\saints.pwn(47074) : warning 235: public function lacks forward declaration (symbol "CheckValidTextDraws")

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    Header size:          9764 bytes

    Code size:          1956972 bytes

    Data size:          9236168 bytes

    Stack/heap size:      16384 bytes; estimated max. usage=4123 cells (16492 bytes)

    Total requirements:11219288 bytes

    4 Warnings.[/pawn]

    si in server numai merge nicio comanda

  9. acuma iar imi da la linia 9392:

    MISSING BRACKET: The { bracket on line 9392 does not have a pair!
    Result: 
    Opening angle brackets ({): 9364 
    Closing angle brackets (}): 9363 
    1 angle brackets without pair! Fix it! 
    

    [pawn]public RingTonerRev()

    {

    for(new i = 0; i < MAX_PLAYERS; i++)

    9392:{

        if(IsPlayerConnected(i))

        {

    if(RingTone != 5 && RingTone != 0 && RingTone < 10)

    {

    RingTone = RingTone -1;

    PlayerPlaySound(i, 1137, 0.0, 0.0, 0.0);

    }

    if(RingTone == 5)

    {

    RingTone = RingTone -1;

    }

    if(RingTone == 19)

    {

    PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);

    RingTone = 0;

    }

    }

    }

    SetTimer("RingToner", 1000, 0);

    return 1;

    }

    [/pawn]

    [pawn]

    9363:public RingToner()

    9364:{

    for(new i = 0; i < MAX_PLAYERS; i++)

    {

        if(IsPlayerConnected(i))

        {

    if(RingTone != 6 && RingTone != 0 && RingTone < 11)

    {

    RingTone = RingTone -1;

    PlayerPlaySound(i, 1138, 0.0, 0.0, 0.0);

    }

    if(RingTone == 6)

    {

    RingTone = RingTone -1;

    }

    if(RingTone == 20)

    {

    RingTone = RingTone -1;

    PlayerPlaySound(i, 1139, 0.0, 0.0, 0.0);

    }

    }

    }

    SetTimer("RingTonerRev", 1000, 0);

    return 1;

    }

    [/pawn]

    si din jurul liniei 9314:

    [pawn]

    public SetPlayerCriminal(playerid,declare,reason[])

    {//example: SetPlayerCriminal(playerid,255, "Stealing A Police Vehicle");

    if(IsPlayerConnected(playerid))

    {

        PlayerInfo[playerid][pCrimes] += 1;

        new points = WantedPoints[playerid];

    new turned[MAX_PLAYER_NAME];

    new turner[MAX_PLAYER_NAME];

    new turnmes[128];

    new wantedmes[128];

    new wlevel;

    strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255);

    GetPlayerName(playerid, turned, sizeof(turned));

    if (declare == 255)

    {

    format(turner, sizeof(turner), "Unknown");

    strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);

    }

    if (declare == 256)

    {

    format(turner, sizeof(turner), "CCTV Camera");

    strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);

    }

    else

    {

        if(IsPlayerConnected(declare))

        {

    GetPlayerName(declare, turner, sizeof(turner));

    strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);

    strmid(PlayerCrime[declare][pBplayer], turned, 0, strlen(turned), 255);

    strmid(PlayerCrime[declare][pAccusing], reason, 0, strlen(reason), 255);

    }

    }

    format(turnmes, sizeof(turnmes), " You've commited a Crime ( %s ). Reporter: %s.",reason,turner);

    SendClientMessage(playerid, COLOR_LIGHTRED, turnmes);

    if(points > 0)

    {

        new yesno;

    if(points == 3) { if(WantedLevel[playerid] != 1) { WantedLevel[playerid] = 1; wlevel = 1; yesno = 1; SetPlayerWantedLevel(playerid,1); } }

    else if(points >= 4 && points <= 5) { if(WantedLevel[playerid] != 2) { WantedLevel[playerid] = 2; wlevel = 2; yesno = 1; SetPlayerWantedLevel(playerid,2); } }

    else if(points >= 6 && points <= 7) { if(WantedLevel[playerid] != 3) { WantedLevel[playerid] = 3; wlevel = 3; yesno = 1; SetPlayerWantedLevel(playerid,3); } }

    else if(points >= 8 && points <= 9) { if(WantedLevel[playerid] != 4) { WantedLevel[playerid] = 4; wlevel = 4; yesno = 1; SetPlayerWantedLevel(playerid,4); } }

    else if(points >= 10 && points <= 11) { if(WantedLevel[playerid] != 5) { WantedLevel[playerid] = 5; wlevel = 5; yesno = 1; SetPlayerWantedLevel(playerid,5); } }

    else if(points >= 12 && points <= 13) { if(WantedLevel[playerid] != 6) { WantedLevel[playerid] = 6; wlevel = 6; yesno = 1; SetPlayerWantedLevel(playerid,6); } }

    else if(points >= 14 && points <= 15) { if(WantedLevel[playerid] != 7) { WantedLevel[playerid] = 7; wlevel = 7; yesno = 1; SetPlayerWantedLevel(playerid,6); } }

    else if(points >= 16 && points <= 17) { if(WantedLevel[playerid] != 8) { WantedLevel[playerid] = 8; wlevel = 8; yesno = 1; SetPlayerWantedLevel(playerid,6); } }

    else if(points >= 18 && points <= 19) { if(WantedLevel[playerid] != 9) { WantedLevel[playerid] = 9; wlevel = 9; yesno = 1; SetPlayerWantedLevel(playerid,6); } }

    else if(points >= 20 && points <= 21) { if(WantedLevel[playerid] != 10) { WantedLevel[playerid] = 10; wlevel = 10; yesno = 1; SetPlayerWantedLevel(playerid,6); } }

    if(WantedLevel[playerid] >= 1) { if(gTeam[playerid] == 3) { gTeam[playerid] = 4; } }

    if(yesno)

    {

    format(wantedmes, sizeof(wantedmes), "Current Wanted Level: %d", wlevel);

    SendClientMessage(playerid, COLOR_YELLOW, wantedmes);

    for(new i = 0; i < MAX_PLAYERS; i++)

    {

    if(IsPlayerConnected(i))

    {

        if(PlayerInfo[pMember] == 1||PlayerInfo[pLeader] == 1||PlayerInfo[pMember] == 2||PlayerInfo[pLeader] == 2||PlayerInfo[pMember] == 14||PlayerInfo[pLeader] == 14||PlayerInfo[pLeader] == 18)

        {

    format(cbjstore, sizeof(turnmes), "HQ: All Units APB: Reporter: %s",turner);

    SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);

    format(cbjstore, sizeof(turnmes), "HQ: Crime: %s, Suspect: %s",reason,turned);

    SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);

    9314 : }

    }

    }

    }

    }

    }//not connected

    }

    [/pawn]

  10. uite ce fel imi da :

    MISSING BRACKET: The } bracket on line 11222 does not have a pair!
    Result: 
    Opening angle brackets ({): 9314 
    Closing angle brackets (}): 9315 
    1 angle brackets without pair! Fix it! 
    

    si uite linia !

    [pawn]GetPlayerName(targetid, name, sizeof(name));

    GetPlayerHealth(targetid,health);

    GetPlayerArmour(targetid,armour);

      11222    new Float:px,Float:py,Float:pz;

    GetPlayerPos(targetid, px, py, pz);

    new coordsstring[256];[/pawn]

×
×
  • 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.