case 1: { BementIdo[playerid] = 3; new hazak = sizeof(HouseInfo); if(IsAt(playerid,IsAt_HazElott) != NINCS) for(new i = 0; i < hazak; i++) if(PlayerToPoint(1, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) if(HouseInfo[i][hDrog] != 1) return Msg(playerid,"A hбzban nincs droglabor!"); SetPlayerVirtualWorld(playerid, i); <<ERROR! SetPlayerPos(playerid,1253.2783,-1701.6456,6319.3672); Freeze(playerid,5000); GameTextForPlayer(playerid, "~w~Ьdv itt!", 2000, 1); PlayerInfo[playerid][pLocal] = i; <<ERROR! Hazbanvan[playerid] = 1; } } } }
[pLocal] = i;
[pLocal] = i+6000;
Instead of writing:
Код:
[pLocal] = i; Код:
[pLocal] = i+6000; +REP If I helped you |
case 1:
{
for(new i = 0; i < hazak; i++)
{
if(PlayerToPoint(1, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez]))
if(HouseInfo[i][hDrog] != 1) return Msg(playerid,"A hбzban nincs droglabor!");
SetPlayerVirtualWorld(playerid, i); <<ERROR!
SetPlayerPos(playerid,1253.2783,-1701.6456,6319.3672);
Freeze(playerid,5000);
GameTextForPlayer(playerid, "~w~Ьdv itt!", 2000, 1);
PlayerInfo[playerid][pLocal] = i; <<ERROR!
Hazbanvan[playerid] = 1;
}
}
}
}
}
for(new i = 0; i < hazak; i++)
error 017: undefined symbol "hazak"
Код:
for(new i = 0; i < hazak; i++) Код:
error 017: undefined symbol "hazak" |
Not always, "i" can be anything what you define it to be. In most cases however, it is defined as "playerid" in a loop.
|