04.12.2012, 13:26
Hi, i need some help with GarHouse v2.0
I get those errors:
Line 173:
Line 501 (full code):
And i have foreach included... Help plz !
I get those errors:
Код:
C:\Documents and Settings\Cherry\Desktop\Ьleni uus sfs\filterscripts\house.pwn(173) : error 001: expected token: "-identifier-", but found "-integer value-" C:\Documents and Settings\Cherry\Desktop\Ьleni uus sfs\filterscripts\house.pwn(501) : error 017: undefined symbol "YSI_gHousesS" C:\Documents and Settings\Cherry\Desktop\Ьleni uus sfs\filterscripts\house.pwn(501) : error 017: undefined symbol "YSI_gHousesA" C:\Documents and Settings\Cherry\Desktop\Ьleni uus sfs\filterscripts\house.pwn(501) : warning 215: expression has no effect C:\Documents and Settings\Cherry\Desktop\Ьleni uus sfs\filterscripts\house.pwn(501) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Cherry\Desktop\Ьleni uus sfs\filterscripts\house.pwn(501) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
pawn Код:
new Iterator:Houses<MAX_HOUSES>, Text3D:HouseLabel[MAX_HOUSES], Float:X, Float:Y, Float:Z, Float:Angle;
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
foreach(Houses, h) // 501 <<<<<< Line
{
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;
}