Jump to content
  • 0

problema 6 warns


EterNo

Question

Am niste warning-uri care nu le pot rezolva deloc sper sa ma puteti ajuta voi .

C:\Documents and Settings\Administrator\Desktop\The Godfather!!\gamemodes\gf.pwn(3966) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Administrator\Desktop\The Godfather!!\gamemodes\gf.pwn(4893) : warning 212: possibly unintended bitwise operation
C:\Documents and Settings\Administrator\Desktop\The Godfather!!\gamemodes\gf.pwn(4893) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Desktop\The Godfather!!\gamemodes\gf.pwn(6794) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Desktop\The Godfather!!\gamemodes\gf.pwn(10620) : warning 213: tag mismatch
C:\Documents and Settings\Administrator\Desktop\The Godfather!!\gamemodes\gf.pwn(10691) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          11408 bytes
Code size:          1663220 bytes
Data size:          6755624 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4137 cells (16548 bytes)
Total requirements: 8446636 bytes

6 Warnings.

Primu warning :

  [pawn]  WantedPoints[playerid]+=20; SetPlayerCriminal(playerid,255, "Jefuieste banca orasului");

      GameTextForPlayer(playerid, "~r~Ai jefuit banca", 2500, 1);

      DisablePlayerCheckpoint(playerid);

      SetPlayerWantedLevel(playerid, 10);

      WantedPoints[playerid]+= 21;

          CP[playerid] = 51;

          SetPlayerCheckpoint(playerid, 2125.1970,-1259.6982,24.1090); // ASTA ESTE LINIA

          SendClientMessage(playerid, COLOR_YELLOW, "Acum dute la depozit pentru a lua bani.");

          BizzInfo[4][bProducts] -= 25;

          new pName[24];

          new str[128];

          GetPlayerName(playerid, pName, 24);

          format(str, 128,"Banca a fost jefuita de %s, toate unitatile in alerta !", pName);

          SendClientMessageToAll(COLOR_RED, str);[/pawn]

Warning 2 : [pawn]     }

}

        if(newcar==180|newcar==181||newcar==182||newcar==183||newcar==184||newcar==185||newcar==186) // asta e linia ( 2 warning-uri pe aceasta linie )

    {

            if(PlayerInfo[playerid][pMember] == 6||PlayerInfo[playerid][pLeader] == 6) { }

    else

{

        SendClientMessage(playerid,0x806C28FF,"  You are not a member of The Triads !");[/pawn]

Warining 4 :

[pawn]        new warns = PlayerInfo[targetid][pWarns];

        new pboxmats = PlayerInfo[targetid][pBoxMats]; // asta e linia

        new pboxdrugs = PlayerInfo[targetid][pBoxDrugs];[/pawn]

Warning 5 :

[pawn]                  PlayerInfo[playerid][pMats] -= matss;

                  PlayerInfo[playerid][pBoxMats] += matss; // asta e linia.[/pawn]

Warning 6 :

[pawn]     SendClientMessage(playerid, COLOR_GRAD2, "USAGE: Materiale [amount]");

    format(string, sizeof(string), "Ai %d materiale in depozit.",  // asta e linia PlayerInfo[playerid][pBoxMats]);[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

CrystyaN, daca ai de gand sa-l ajuti, ajuta-l la toate.

Eroarea 1.

[pawn]SetPlayerCheckpoint(playerid, 2125.1970,-1259.6982,24.1090);[/pawn]

trebuie sa fie

[pawn]SetPlayerCheckpoint(playerid, 2125.1970,-1259.6982,24.1090,MARIME); //de preferat 5.0 sau 10.0[/pawn]

* http://wiki.sa-mp.com/wiki/SetPlayerCheckpoint

Erorile 2,3.

[pawn]if(newcar==180|newcar==181||newcar==182||newcar==183||newcar==184||newcar==185||newcar==186)[/pawn]

trebuie sa fie

[pawn]if(newcar==180 || newcar==181 || newcar==182 || newcar==183 || newcar==184 || newcar==185 || newcar==186)[/pawn]

Eroarea 4. Vezi sa fie bine creat in varful scriptului ...

Eroarea 5. La fel ca 4.

Eroarea 6. La fel ca 5.

Ultimele 3 sunt legate de PlayerInfo[playerid][pBoxMats], vezi sa fie creat la PlayerInfo ...

Link to comment
Share on other sites

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.