Please Help me :(
#1

pawn Код:
public Inventorius(playerid)
{
    if(IsPlayerConnected(playerid))
    {
      if(gPlayerLogged[playerid] == 0)
      {
        SendClientMessage(playerid, COLOR_GREY, "  Privalote buti prisijunges ! ");
        return 1;
      }
      new gunname[100];
              GetWeaponName(PlayerInfo[playerid][pInvWeapon], gunname, sizeof(gunname));
      if(PlayerInfo[playerid][pInvWeapon] != 0 && PlayerInfo[playerid][pInvAmmo] != 0)
      {
      Inv = CreateMenu("Inventorius", 2, 200.0, 100.0, 150.0, 150.0);
          AddMenuItem(Inv,0,"+ ~r~Weapon: ~w~ %s, ~r~ Ammo: ~w~ %d", gunname, PlayerInfo[playerid][pInvAmmo]);
          AddMenuItem(Inv,0,"+ ~r~Weapon: ~w~ %s, ~r~ Ammo: ~w~ %d", gunname, PlayerInfo[playerid][pInvAmmo]);
          AddMenuItem(Inv,0,"+ ~r~Weapon: ~w~ %s, ~r~ Ammo: ~w~ %d", gunname, PlayerInfo[playerid][pInvAmmo]);
          AddMenuItem(Inv,0,"+ ~r~Weapon: ~w~ %s, ~r~ Ammo: ~w~ %d", gunname, PlayerInfo[playerid][pInvAmmo]);
            }
            else
            {
          AddMenuItem(Inv,0,"~w~Empy");
            }
      SendClientMessage(playerid, COLOR_LIGHT_BLUE, "_______________________________");
      SendClientMessage(playerid, COLOR_WHITE, "[Help]: /takegun | /putgun");
    }
    return 1;
}
pawn Код:
(43649) : warning 202: number of arguments does not match definition
(43649) : warning 202: number of arguments does not match definition
(43650) : warning 202: number of arguments does not match definition
(43650) : warning 202: number of arguments does not match definition
(43651) : warning 202: number of arguments does not match definition
(43651) : warning 202: number of arguments does not match definition
(43652) : warning 202: number of arguments does not match definition
(43652) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:      9136 bytes
Code size:     1611480 bytes
Data size:     10328016 bytes
Stack/heap size:   16384 bytes; estimated max. usage=5266 cells (21064 bytes)
Total requirements:11965016 bytes

8 Warnings.
What's wrong?
Reply
#2

if you have the same question but want to add more info, don't create a whole new topic for it, but just click modify at the right top of your message.
Reply
#3

Help me scripters

sorry bad english
Reply
#4

pawn Код:
public Inventorius(playerid)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "  Privalote buti prisijunges ! ");
            return 1;
           
        }
        new gunname[100];
        GetWeaponName(PlayerInfo[playerid][pInvWeapon], gunname, sizeof(gunname));
        if(PlayerInfo[playerid][pInvWeapon] != 0 && PlayerInfo[playerid][pInvAmmo] != 0)
        {
            Inv = CreateMenu("Inventorius", 2, 200.0, 100.0, 150.0, 150.0);
            new string[128];
            format(string, sizeof(string), "+ ~r~Weapon: ~w~ %s, ~r~ Ammo: ~w~ %d", gunname, PlayerInfo[playerid][pInvAmmo]);
            AddMenuItem(Inv,0,string);
            AddMenuItem(Inv,0,string);
            AddMenuItem(Inv,0,string);
            AddMenuItem(Inv,0,string);
        }
        else
        {
            AddMenuItem(Inv,0,"~w~Empy");
           
        }
        SendClientMessage(playerid, COLOR_LIGHT_BLUE, "_______________________________");
        SendClientMessage(playerid, COLOR_WHITE, "[Help]: /takegun | /putgun");
    }
    return 1;
}
Reply
#5

Delete.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)