SA-MP Forums Archive
does that function if (pID==playerid) - 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: does that function if (pID==playerid) (/showthread.php?tid=320619)



does that function if (pID==playerid) - dalkgamler - 23.02.2012

work this
Код:
if(pID1==playerid)
          {//my code

          }



Re: does that function if (pID==playerid) - iTorran - 23.02.2012

I'm sorry .. What??!?


AW: does that function if (pID==playerid) - Drebin - 23.02.2012

Depends on what pID1 is. If pID1 is the player itself, then this code is pointless (you'd be checking if the player = the same player)


Re: does that function if (pID==playerid) - JhnzRep - 24.02.2012

I use
pawn Код:
if(pID == playerid) return SendClientMessage(playerid, -1, "You can't  teleport you to your self")
And functions like this.

Other than that I don't know why you would use it.


AW: does that function if (pID==playerid) - dalkgamler - 24.02.2012

ok thanks for the help
sry for this ask i have had a blackout and i've only have forgotten something to change