Quote:
Originally Posted by anonpiss
Any examples? I tried looking at other codes, did trial and error but still failed to compile without errors.
|
Find "client"
Replace it with "i"
Code:
public OnGameFrame() {
if (g_bDoubleJump) { // double jump active
for (new i = 1; i <= MaxClients; i++) { // cycle through players
if (IsClientInGame(i) && IsPlayerAlive(i))
{
if (GetUserFlagBits(i) & ADMFLAG_ROOT)
{
DoubleJump(i) // Check for double jumping
}
}
}
}
}
You have to define the variable BEFORE you try to use it <_<