strcat
#8

srry for 2ble post, but another problem with speedometer..

pawn Код:
if( IsPlayerInAnyVehicle( ID ) && GetPlayerState( ID ) == PLAYER_STATE_DRIVER )
            {
                new
                    Automobilis = GetPlayerVehicleID( ID ),
                    Modelis = GetVehicleModel( Automobilis )
                ;
                if( Modelis != 481 || Modelis != 510 || Modelis != 509 )
                {
                    if( ZaidejoGreitis( ID ) < 100 )
                    {
                        format( Stringas, 60, "~g~Greitis: ~y~%d~n~~g~Degalai: ~y~%d", ZaidejoGreitis( ID ), MasinuDB[ Masina ][ Degalai ] );
                        TextDrawSetString( Spidometras[ ID ], Stringas );
                        TextDrawShowForPlayer( ID, Spidometras[ ID ] );
                    }
                    else
                    {
                        format( Stringas, 70, "~g~Greitis: ~r~%d~n~~g~Degalai: ~y~%d", ZaidejoGreitis( ID ), MasinuDB[ Masina ][ Degalai ] );
                        TextDrawSetString( Spidometras[ ID ], Stringas );
                        TextDrawShowForPlayer( ID, Spidometras[ ID ] );
                    }
                }
                else
                {
                    format( Stringas, 27, "~g~Greitis: ~y~%d", ZaidejoGreitis( ID ) );
                    TextDrawSetString( Spidometras[ ID ], Stringas );
                    TextDrawShowForPlayer( ID, Spidometras[ ID ] );
                }
            }
        }
        else
        {
            TextDrawHideForPlayer( ID, Spidometras[ ID ] );
        }
    }
And if I enter any bike server shows fuel for me, but Im checking vehicle model id, so maybe anyone know whats wrong?
Reply


Messages In This Thread
strcat - by Gh0sT_ - 05.02.2011, 00:30
Re: strcat - by Jefff - 05.02.2011, 01:52
Re: strcat - by Gh0sT_ - 05.02.2011, 10:25
Re: strcat - by MadeMan - 05.02.2011, 11:15
Re: strcat - by Gh0sT_ - 05.02.2011, 11:42
Re: strcat - by MadeMan - 05.02.2011, 12:12
Re: strcat - by Gh0sT_ - 05.02.2011, 12:47
Re: strcat - by Gh0sT_ - 05.02.2011, 13:05
Re: strcat - by MadeMan - 05.02.2011, 13:50
Re: strcat - by Gh0sT_ - 05.02.2011, 15:03

Forum Jump:


Users browsing this thread: 5 Guest(s)