OnPlayerClickTextDraw not working
#1

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

Can someone help me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)