Foreach question.
#2

Quote:

foreach(new i : Player)
{
if(Data[i][Sr] == 1)
{
if(Data[i][pPower] < 150)
{
SendClientMessage(i, COLOR_RED, "Error: You do not have enough energy!");
Data[i][Sr] = 0;
Data[i][trans] = 0;
Data[i][pPower] = Data[i][sPower];
}}}
return 1;
}

try this
Reply


Messages In This Thread
Foreach question. - by [eLg]elite - 19.02.2016, 23:42
Re: Foreach question. - by LovelySoomro - 20.02.2016, 05:17

Forum Jump:


Users browsing this thread: 2 Guest(s)