SA-MP Forums Archive
OnPlayerClickTextDraw not working - 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: OnPlayerClickTextDraw not working (/showthread.php?tid=490186)



OnPlayerClickTextDraw not working - skydux123 - 25.01.2014

Hello everybody, I have one question: What I do bad with this code?
PHP код:
    if(clickedid == Degaline2)
    {
    for(new 
i = 0; i < MAX_VEHICLES; i++)
    {
        new 
Float:x, Float:y, Float:z;
        
GetVehiclePos(i, x, y, z);
        if(
IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
        {
            
pildo[playerid] = 1;
            
pildomam[playerid] = i;
            
taimeris = SetTimerEx("Pildom", 1000, true, "i", playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline3)
    {
    for(new 
i = 0; i < MAX_VEHICLES; i++)
    {
        new 
Float:x, Float:y, Float:z;
        
GetVehiclePos(i, x, y, z);
        if(
IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
        {
            
pildo[playerid] = 2;
            
pildomam[playerid] = i;
            
taimeris = SetTimerEx("Pildom", 1000, true, "i", playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline4)
    {
    for(new 
i = 0; i < MAX_VEHICLES; i++)
    {
        new 
Float:x, Float:y, Float:z;
        
GetVehiclePos(i, x, y, z);
        if(
IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
        {
            
pildo[playerid] = 4;
            
pildomam[playerid] = i;
            
taimeris = SetTimerEx("Pildom", 1000, true, "i", playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline5)
    {
    for(new 
i = 0; i < MAX_VEHICLES; i++)
    {
        new 
Float:x, Float:y, Float:z;
        
GetVehiclePos(i, x, y, z);
        if(
IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
        {
            
pildo[playerid] = 3;
            
pildomam[playerid] = i;
            
taimeris = SetTimerEx("Pildom", 1000, true, "i", playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline6)
    {
    for(new 
i = 0; i < MAX_VEHICLES; i++)
    {
        new 
Float:x, Float:y, Float:z;
        
GetVehiclePos(i, x, y, z);
        if(
IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
        {
            
pildo[playerid] = 5;
            
pildomam[playerid] = i;
            
taimeris = SetTimerEx("Pildom", 1000, true, "i", playerid);
        }
    }
    return 
1;
    } 
It's not working...
Thanks in advice


Re: OnPlayerClickTextDraw not working - skydux123 - 25.01.2014

Can someone help me?