23.10.2009, 19:42
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.