Enter vehicles only with certain score
#2

You need to use SetTimerEx instead of SetTimer to tell to the public function the player id.

pawn Код:
SetTimerEx("CarEjecter", 1000, 0, "i", playerid);
Use this for more info:

wiki.sa-mp.com/wiki/SetTimerEx

Ah, and you don't need a variable to store the player's score. Use this optimization:

pawn Код:
if(GetPlayerScore(playerid) > 50)
// stuff here
Reply


Messages In This Thread
Enter vehicles only with certain score - by BlackWolf120 - 10.01.2011, 19:12
Re: Enter vehicles only with certain score - by [BEP]AcerPilot - 10.01.2011, 19:18
Re: Enter vehicles only with certain score - by BlackWolf120 - 10.01.2011, 19:25
Re: Enter vehicles only with certain score - by boelie - 10.01.2011, 19:26
Re: Enter vehicles only with certain score - by BlackWolf120 - 10.01.2011, 19:27
AW: Enter vehicles only with certain score - by Kmitska - 10.01.2011, 19:30
Re: Enter vehicles only with certain score - by BlackWolf120 - 10.01.2011, 19:34
Re: Enter vehicles only with certain score - by [BEP]AcerPilot - 10.01.2011, 19:51
Re: Enter vehicles only with certain score - by boelie - 10.01.2011, 19:53
Re: Enter vehicles only with certain score - by BlackWolf120 - 10.01.2011, 20:14

Forum Jump:


Users browsing this thread: 2 Guest(s)