Help with toggleplayer controllable
#1

Hey i get a warning of this code
pawn Code:
61      for(new i; i < MAX_PLAYERS; i++)
62      {
63          PlayerPlaySound(i,1187, 0.0,0.0,10.0);
64          TogglePlayerControllable(i,0);
65      }
And this is the warning:
pawn Code:
C:\Users\Thimo\Desktop\sa-mp\gamemodes\****.pwn(60) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
How to fix this? thnx
Reply
#2

Show line no. 60 rofl.
Reply
#3

Code:
for(new i, Max = GetMaxPlayers(); i < Max; i++)if(IsPlayerConnected(i))
{
PlayerPlaySound(i,1187, 0.0,0.0,10.0);
TogglePlayerControllable(i,0);
}
P.S
Use foreach.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)