28.03.2011, 10:33
In my script, when i compiled , it shows this warning.
how to fix it?
here is the code
pawn Код:
C:\Documents and Settings\Ironboy\Desktop\0.3c\3c edit of satdm\gamemodes\Satdm~v11.pwn(28125) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
here is the code
pawn Код:
CMD:archi(playerid, params[])
{
new skin, id = strval(params[0]), beret, slot = GetEmptySlot(playerid), count;
if(id <= 0 || id > 12) return SendClientMessage(playerid, 0xFFFFFFAA, "Use: /hat [1 - 12]");
skin = (GetPlayerSkin(playerid) - 1);
switch(id)
{
case 1: beret = 18926;
case 2..10: beret = 18926 + id;
case 11: beret = 19099;
case 12: beret = 19098;
}
do
{
if(skin == invalidskins[count]) return SendClientMessage(playerid, 0xFFFFFFAA, "Your thopi do not support a archi.");
count++;
}
while(count < sizeof invalidskins);
if(skin < 0) skin = 0;
if(slot == -1) return SendClientMessage(playerid, 0xFFFFFFAA, "You're holding the maximum of objects possible.");
SetTimerEx("Hide", 3000, false, "d", playerid);
SetPlayerAttachedObjectEx(playerid, slot, beret, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
GivePlayerMoney(playerid, -500);
return 1;
}
SetPlayerAttachedObjectEx(playerid, slot, bone, Float:X, Float:Y, Float:Z, Float:RX, Float:RY, Float:RZ)
{
if(!pObject[playerid][slotreserved])
{
pObject[playerid][slotreserved] = true;
pObject[playerid][CModel] = model;
pObject[playerid][CSlot] = slot;
SetPlayerAttachedObject(playerid, slot, model, bone, X, Y, Z, RX, RY, RZ);
}
else
{
SetPlayerAttachedObject(playerid, pObject[playerid][CSlot], model, bone, X, Y, Z, RX, RY, RZ);
}
return 1;
}