Warning: 202
#1

When i try to compile a house i added:


pawn Код:
CreateHouse("House1", 2, 2067.0593,-1731.7346,14.2066,274.1457,0,0,0,0,0,0);
i get this error:
: warning 202: number of arguments does not match definition

anyone tell why?
Reply
#2

Can you show me the 'stock CreateHouse' function. You are missing a param, or you'd do a param extra.
Reply
#3

pawn Код:
stock CreateHouse(Filename[], Cost, Float:Pickupx, Float:Pickupy, Float:Pickupz, Float:Telex, Float:Teley, Float:Telez, interior, sell)
{
  new file[55];
  format(file, sizeof(file), "Owners.ini", Filename);
  {
    if(!dini_Exists("Owners.ini"))
    {
        dini_Create("Owners.ini");
    }
    HouseCount ++;
    new ID = HouseCount; //HouseID
    format(HouseInfo[ID][HouseNames], 60, "%s", Filename); //Saves the HouseName into a variable
    HouseInfo[ID][HouseCost] = Cost;
    HouseInfo[ID][PickupX] = Pickupx;
    HouseInfo[ID][Virtual] = 2000000 + ID;
    HouseInfo[ID][PickupY] = Pickupy;
    HouseInfo[ID][PickupZ] = Pickupz;
    HouseInfo[ID][TeleX] = Telex;
    HouseInfo[ID][TeleY] = Teley;
    HouseInfo[ID][TeleZ] = Telez;
    HouseInfo[ID][Interior] = interior;
    HouseInfo[ID][HouseSell] = sell;
    format(HouseInfo[ID][HouseOwner], 24, "gj9043jg-er((23");
    if(strlen(dini_Get("Owners.ini", Filename))) //This is to see if there is any owner.
    {
        format(HouseInfo[ID][HouseOwner], 24, "%s", dini_Get("Owners.ini", Filename));
        HouseInfo[ID][Owned] = 1;
    }
    PickupID[ID] = CreatePickup(1273, 23, Pickupx, Pickupy, Pickupz, -1); //Creates the pickup :).
    Create3DTextLabel("House", 0x00A0F6AA, Pickupx, Pickupy, Pickupz + 0.75, 15.0, 0, 1);
  }
  return 1;

}
Reply
#4

Quote:
Originally Posted by kickflipdude
Посмотреть сообщение
When i try to compile a house i added:


pawn Код:
CreateHouse("House1", 2, 2067.0593,-1731.7346,14.2066,274.1457,0,0,0,0);
i get this error:
: warning 202: number of arguments does not match definition

anyone tell why?
pawn Код:
CreateHouse("House1", 2, 2067.0593,-1731.7346,14.2066,274.1457,0,0,0,0,0);
remove two of your zeros and of course you need something for teley and telez
Reply
#5

oh wow!!

LOL THANKS!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)