SA-MP Forums Archive
Opposite for GetPlayerTeam - 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)
+--- Thread: Opposite for GetPlayerTeam (/showthread.php?tid=129610)



Opposite for GetPlayerTeam - Torran - 22.02.2010

I have this code

pawn Код:
if (GetPlayerTeam(playerid) == TEAM_MEDIC)
And normally i would put "!" to do the opposite,
But i get tag mismatch if i do it on GetPlayerTeam, So how would i do it on there?


Re: Opposite for GetPlayerTeam - silvan - 22.02.2010

try this:
Код:
if(GetPlayerTeam(playerid) != "TEAM_MEDIC")
{
// Stuff here
}



Re: Opposite for GetPlayerTeam - Torran - 22.02.2010

Yeah it worked, Another question, Im using ZCMD & sscanf for the first time,
And well the zcmd command works, But no other in the server does, Know why anyone?


Re: Opposite for GetPlayerTeam - ZBits - 04.07.2012

yes

you cant use zcmd with strcmp or other commands include so you can just use zcmd that what happened to me which i managed to fix my self