What happend here?!
#5

Wait... shouldn't the variables be on top and then you do something within the lines of this..?
PHP код:
for(new i=0;i<MAX_PLAYERS;i++) // This loop will check for the player that has the most kills 
    

        if(
kills[playerid] > kills[i]) 
        { 
            
first playerid
            
GetPlayerName(firstNick[0], MAX_PLAYER_NAME); 
            
format(string20sizeof(string20), "~R~#1 - ~W~%s"Nick[0]); 
            
TextDrawSetString(Textdraw12string20); 
            
TextDrawShowForPlayer(playeridTextdraw12); 
        } 
    } 
This is the way to do it if you're putting it at OnPlayerSpawn, you gotta put playerid to use otherwise its absolutely useless putting all of those loops at OnPlayerSpawn or maybe i got the concept wrong but from the code you've shown so far this is what i understood.
Reply


Messages In This Thread
What happend here?! - by Thanks - 29.12.2017, 17:16
Re: What happend here?! - by Kaperstone - 29.12.2017, 17:22
Re: What happend here?! - by Thanks - 29.12.2017, 17:25
Re: What happend here?! - by Thanks - 29.12.2017, 17:30
Re: What happend here?! - by RogueDrifter - 29.12.2017, 17:30
Re: What happend here?! - by Thanks - 29.12.2017, 17:34
Re: What happend here?! - by Thanks - 29.12.2017, 19:47
Re: What happend here?! - by Thanks - 30.12.2017, 19:42
Re: What happend here?! - by Thanks - 31.12.2017, 07:48
Re: What happend here?! - by RogueDrifter - 31.12.2017, 08:07

Forum Jump:


Users browsing this thread: 3 Guest(s)