18.04.2012, 20:27
I found a GarHouse FS in my folder, so i compiled and got
I just wanted to change the MIN and max prices, but i got some errors
pawn Код:
C:
\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(119) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : warning 215: expression has no effect
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : error 001: expected token: ";", but found "]"
C:\Users\Danny\Desktop\Server\filterscripts\GarHouse.pwn(447) : fatal error 107: too many error messages on one line
pawn Код:
new Iterator:Houses<MAX_HOUSES>, Text3D:HouseLabel[MAX_HOUSES], Float:X, Float:Y, Float:Z, Float:Angle;//119
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
foreach(Houses, h)//447
{
if(GetPlayerVehicleID(playerid) == HCar[h])
{
switch(strcmp(hInfo[h][HouseOwner], pNick(playerid), CASE_SENSETIVE))
{
case 0: ShowInfoBox(playerid, I_HOUSECAR_OWNER, pNick(playerid), h);
case 1:
{
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(playerid, (X + 3), Y, Z);
ShowInfoBox(playerid, E_NOT_HOUSECAR_OWNER, h, hInfo[h][HouseOwner]);
}
}
break;
}
}
}
return 1;
}
#endif