[HELP] Okay, I'M really stuck here :\ - 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] Okay, I'M really stuck here :\ (
/showthread.php?tid=114464)
[HELP] Okay, I'M really stuck here :\ -
AcId n RaPiD - 19.12.2009
pawn Код:
new giveplayerid, moneys, idx;
new Float:x, Float:y, Float:z;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsStringAName(tmp))
{
giveplayerid = GetPlayerID(tmp);
}
else
{
giveplayerid = strval(tmp);
}
if (IsPlayerConnected(giveplayerid))
{
GetPlayerPos(playerid, x, y, z);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsPlayerInRangeOfPoint(giveplayerid, 0.5, x, y, z))
{
I want it so that when the player touches giveplayerid it will send a message to both of them... but I'm really stuck here and I don't know what to do. Btw, I put this code in a timer.
Re: [HELP] Okay, I'M really stuck here :\ -
GTA_Rules - 19.12.2009
Did you use SetTimerEx or SetTimer?
Re: [HELP] Okay, I'M really stuck here :\ -
AcId n RaPiD - 19.12.2009
Quote:
Originally Posted by Matthias_
Did you use SetTimerEx or SetTimer?
|
SetTimerEx
Re: [HELP] Okay, I'M really stuck here :\ -
GTA_Rules - 23.12.2009
Show me the SetTimerEx line, since I doubt you use 'tmp' as an argument.