[HELP] Okay, I'M really stuck here :\
#1

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.
Reply
#2

Did you use SetTimerEx or SetTimer?
Reply
#3

Quote:
Originally Posted by Matthias_
Did you use SetTimerEx or SetTimer?
SetTimerEx
Reply
#4

Show me the SetTimerEx line, since I doubt you use 'tmp' as an argument.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)