Onlie Players
#4

I have this
PHP код:
new PlayersOnline//global
public OnPlayerConnect(playerid)
{
        new 
string2[5];
    
PlayersOnline ++;
    
format(string2sizeof(string2), "%d%"PlayersOnline);
        
TextDrawSetString(OnlineRecordTD[2], string2);
    return 
1;
}
public 
OnPlayerDisconnect(playeridreason)
{
       
PlayersOnline --;
       
format(string2sizeof(string2), "%d%"PlayersOnline);
       
TextDrawSetString(OnlineRecordTD[2], string2);    
        return 
1;

But still not working I created TD like this
PHP код:
OnlineRecordTD[2] = TextDrawCreate(112.666671290.551269"1000");
    
TextDrawLetterSize(OnlineRecordTD[2], 0.4000001.600000);
    
TextDrawAlignment(OnlineRecordTD[2], 1);
    
TextDrawColor(OnlineRecordTD[2], 16777215);
    
TextDrawSetShadow(OnlineRecordTD[2], 0);
    
TextDrawSetOutline(OnlineRecordTD[2], 0);
    
TextDrawBackgroundColor(OnlineRecordTD[2], 255);
    
TextDrawFont(OnlineRecordTD[2], 1);
    
TextDrawSetProportional(OnlineRecordTD[2], 1);
    
TextDrawSetShadow(OnlineRecordTD[2], 0); 
When I join it says 1000.. Any ideas?
Reply


Messages In This Thread
Online Players - by Micko123 - 03.11.2016, 21:19
Re: Onlie Players - by oMa37 - 03.11.2016, 21:51
Respuesta: Re: Onlie Players - by Ner0x96 - 04.11.2016, 01:22
Re: Onlie Players - by Micko123 - 04.11.2016, 06:57
Re: Onlie Players - by Hunud - 04.11.2016, 07:01
Re: Onlie Players - by Micko123 - 04.11.2016, 07:03
Re: Onlie Players - by Hunud - 04.11.2016, 07:06
Re: Onlie Players - by Micko123 - 04.11.2016, 07:09
Re: Onlie Players - by RoboN1X - 04.11.2016, 07:27
Re: Onlie Players - by Micko123 - 04.11.2016, 07:34

Forum Jump:


Users browsing this thread: 1 Guest(s)