14.07.2010, 23:50
Ok thx for fast answer, but in the stock is a error,
but why after the for (not new but directly h ?
PHP код:
stock IsPlayerNearAnyHouse(playerid)
{
for(h = 0; h < sizeof(HausInfo); h ++ ) // Here
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, HausInfo[h][eX], HausInfo[h][eY], HausInfo[h][eZ])) return i;
}
return 0;
}
PHP код:
C:\Users\Schnacke\Desktop\LSR SM\gamemodes\LSR-Selfmade.pwn(131) : error 017: undefined symbol "h"
C:\Users\Schnacke\Desktop\LSR SM\gamemodes\LSR-Selfmade.pwn(131) : warning 205: redundant code: constant expression is zero
C:\Users\Schnacke\Desktop\LSR SM\gamemodes\LSR-Selfmade.pwn(131) : error 017: undefined symbol "h"
C:\Users\Schnacke\Desktop\LSR SM\gamemodes\LSR-Selfmade.pwn(131) : warning 215: expression has no effect
C:\Users\Schnacke\Desktop\LSR SM\gamemodes\LSR-Selfmade.pwn(131) : error 001: expected token: ")", but found ";"
C:\Users\Schnacke\Desktop\LSR SM\gamemodes\LSR-Selfmade.pwn(131) : fatal error 107: too many error messages on one line