ForEach or Where?
#1

hey guys! I need to ask you something.

I want to use a CMD for every house CarInfo[i][owner] == PlayerInfo[playerid][Pid]

Do I need to use: where or ForEach?

and how to use them? thanks
Reply
#2

pawn Код:
foreach(Player, i)
{
//code below
Reply
#3

What I mean is,

I want to change the status of the house for every house that has [owner] == PlayerInfo[playerid][owner] (Pid is custom define) , And what does Player Mean in foreach?
Reply
#4

// For each player (all MAX_PLAYERS online defined in 'i')
So when you want to change it for all players it goes like
pawn Код:
PlayerInfo[i][owner]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)