Posts: 132
Threads: 52
Joined: Mar 2009
i want a code where i could disable teamkill , so like teamates cannot damage each other
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
Don't you mean:
forward SettingPlayerTeam(playerid);
public SettingPlayerTeam(playerid)
Posts: 218
Threads: 34
Joined: Apr 2008
Reputation:
0
Nope just as its written,works like a charm.
I have heard several question it but its always worked,I beleive Seif said its built into sa-mp and these are callbacks for it.
Posts: 132
Threads: 52
Joined: Mar 2009
now , how would i replace the gTeam with ?,, and the playerid;playerdid<200 with ?
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
If so, then there's no reason for using SetTimerEx, simply because there's no use of putting that extra "playerid" format.
You could just use SetTimer("SettingPlayerTeam", 100, 1);
Posts: 132
Threads: 52
Joined: Mar 2009
kk , but what do i replace with gTeam and playerid;playerid with ?
im trying to make something like , when teamates shoot each other they can't do anydamages , but like they could damage the other team
and
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : error 017: undefined symbol "gTeam"
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Posts: 132
Threads: 52
Joined: Mar 2009
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : error 017: undefined symbol "gTeam"
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : error 017: undefined symbol "playerid"
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Owner\Desktop\SGGW.pwn(3723) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.