18.03.2012, 15:24
Hello I need help with house system but I get stupid error how can I repair it
If you need to see my enum hInfo reply me
pawn Код:
forward UpdatePlayersHouseInfo();
public UpdatePlayersHouseInfo()
{
new str[100]; //The string we are gonna format
for(new i = 0; i < MAX_PLAYERS; i++)
{
for(new j = 0; j < MAX_HOUSES; j++)
{
if(IsPlayerInRangeOfPoint(j, HouseInfo[j][hEnterX], HouseInfo[j][hEnterY], HouseInfo[j][hEnterZ]) && GetPlayerInterior(i) == HouseInfo[j][hOutsideInt] && GetPlayerVirtualWorld(i) == HouseInfo[j][hOutsideVir]) //HERE IS ERROR
{
if(HouseInfo[j][hOwned])
format(str, 100, "~w~House owned by ~r~%s", COLOR_YELLOW, HouseInfo[j][hOwner]);
else
format(str, 100, "~w~House for sale!~n~Price: ~g~$%d,-", COLOR_GREEN, HouseInfo[j][hPrice]);
GameTextForPlayer(i, str, 3000, 3);
}
}
}
return 1;
}
pawn Код:
C:\Users\home\Desktop\GFHF\gamemodes\rp1.pwn(751) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.