[Ajuda] undefined symbol "i"
#2

pawn Код:
#include <a_samp>
#include <string>

forward AtualizarPing();

new Text:PingT[MAX_PLAYERS];

public OnGameModeInit()
{
    for( new i = 0; i < MAX_PLAYERS; i++ )
    {
        PingT[ i ] = TextDrawCreate( 400, 25, "   " );
        TextDrawFont( PingT[ i ], 3);
        TextDrawUseBox( PingT[ i ], 0);
        TextDrawSetOutline( PingT[ i ], 1);
        TextDrawBackgroundColor( PingT[ i ], 0x32CD32FF);
        TextDrawColor( PingT[ i ], 0x000000FF);
        TextDrawAlignment( PingT[ i ], 1);
    }
    SetTimer( "AtualizarPing", 1000, 1 );
    return 1;
}

public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer( playerid, PingT[ playerid ] );
    return 1;
}

public AtualizarPing()
{
    new
        string[ 16 ]
    ;
    for( new i = 0; i < MAX_PLAYERS; i++ )
    {
        if( IsPlayerConnected( i ) )
        {
            format( string, sizeof( string ), "Ping: %d", GetPlayerPing(i) );
            TextDrawSetString( PingT[ i ], string);
        }
    }
    return 1;
}
Reply


Messages In This Thread
undefined symbol "i" - by Caio_Stak - 05.12.2012, 09:21
Re: undefined symbol "i" - by Konstantinos - 05.12.2012, 09:22
Re: undefined symbol "i" - by smiiir - 05.12.2012, 09:37
Re: undefined symbol "i" - by Konstantinos - 05.12.2012, 09:44
Re: undefined symbol "i" - by smiiir - 05.12.2012, 09:49
Re: undefined symbol "i" - by Caio_Stak - 05.12.2012, 10:13

Forum Jump:


Users browsing this thread: 1 Guest(s)