Help with toggleplayer controllable - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with toggleplayer controllable (
/showthread.php?tid=221481)
Help with toggleplayer controllable -
thimo - 05.02.2011
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
Re: Help with toggleplayer controllable -
Hiddos - 05.02.2011
Show line no. 60 rofl.
Re: Help with toggleplayer controllable -
Riddick94 - 05.02.2011
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.