View Single Post
Author Message
Unskilled
Junior Member
Join Date: Dec 2013
Old 07-05-2015 , 10:33   PrintCenterText Not Work
Reply With Quote #1

Hi guys

My printHintText not work why ?

Code :

PHP Code:
for(new 1<= GetMaxClients(); X++)
        {
            
//Drug Addict Plants Loop:
            
for(new 16D++)
            {
                
//X = 32 possible players
                //D = 5 possible plants
                //XOrigins = Player Origin
                //Looping through all players in this loop to see other drug origins!
                
                
if(DrugPlant[X][D][0] != 0.0)
                {
                    
TE_SetupBeamRingPoint(DrugPlant[X][D], 25.01.0g_modelLaserg_modelHalo0100.65.00.5, {255,0,0,255}, 100);
                    
TE_SendToClient(client);
                    
Distz GetVectorDistance(DrugPlant[X][D], ClientOrigin);
                    if(
Distz 50 && DrugPlant[X][D][0] != 0.0)
                    {
                        if(
client == X)
                        {
                            
PrintCenterText(client"Drug Plant (%d grams) Press E to take the drugs!"DrugPlantWorth[X][D]);
                        }
                        else
                        {
                            
decl String:Steal[64];
                            
GetClientName(XStealsizeof(Steal));
                            if(!
IsPolice(client))
                            {
                                
PrintCenterText(client"%s's Drug Plant (%d grams) Press E to steal the drugs!"StealDrugPlantWorth[X][D]);
                            }
                            else if(
IsPolice(client) || IsJustice(client))
                            {
                                
PrintCenterText(client"%s's Drug Plant (%d grams) Press E to destroy the drugs!"StealDrugPlantWorth[X][D]);
                            }
                        }
                    }
                    
                    
//Grams increasing randomly 5 percent of the time x32maxplayers:
                    
decl Randq;
                    
Randq GetRandomInt(1100);
                    if(
Randq 94 && DrugPlantWorth[X][D] < 300)
                    {
                        
DrugPlantWorth[X][D] += 1;
                    }
                }
            }
        } 
Unskilled is offline