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 
0MAX_VEHICLESi++)
    {
        new 
Float:xFloat:yFloat:z;
        
GetVehiclePos(ixyz);
        if(
IsPlayerInRangeOfPoint(playerid10.0xyz))
        {
            
pildo[playerid] = 1;
            
pildomam[playerid] = i;
            
taimeris SetTimerEx("Pildom"1000true"i"playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline3)
    {
    for(new 
0MAX_VEHICLESi++)
    {
        new 
Float:xFloat:yFloat:z;
        
GetVehiclePos(ixyz);
        if(
IsPlayerInRangeOfPoint(playerid10.0xyz))
        {
            
pildo[playerid] = 2;
            
pildomam[playerid] = i;
            
taimeris SetTimerEx("Pildom"1000true"i"playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline4)
    {
    for(new 
0MAX_VEHICLESi++)
    {
        new 
Float:xFloat:yFloat:z;
        
GetVehiclePos(ixyz);
        if(
IsPlayerInRangeOfPoint(playerid10.0xyz))
        {
            
pildo[playerid] = 4;
            
pildomam[playerid] = i;
            
taimeris SetTimerEx("Pildom"1000true"i"playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline5)
    {
    for(new 
0MAX_VEHICLESi++)
    {
        new 
Float:xFloat:yFloat:z;
        
GetVehiclePos(ixyz);
        if(
IsPlayerInRangeOfPoint(playerid10.0xyz))
        {
            
pildo[playerid] = 3;
            
pildomam[playerid] = i;
            
taimeris SetTimerEx("Pildom"1000true"i"playerid);
        }
    }
    return 
1;
    }
    if(
clickedid == Degaline6)
    {
    for(new 
0MAX_VEHICLESi++)
    {
        new 
Float:xFloat:yFloat:z;
        
GetVehiclePos(ixyz);
        if(
IsPlayerInRangeOfPoint(playerid10.0xyz))
        {
            
pildo[playerid] = 5;
            
pildomam[playerid] = i;
            
taimeris SetTimerEx("Pildom"1000true"i"playerid);
        }
    }
    return 
1;
    } 
It's not working...
Thanks in advice


Re: OnPlayerClickTextDraw not working - skydux123 - 25.01.2014

Can someone help me?