iPanter Posted May 25, 2018 Share Posted May 25, 2018 (edited) Username: iPanter Problemă întâlnită: primesc erorile din ss. Detalii despre problemă: - Ce ai încercat să faci înainte să postezi?: nimic Cod sursă (recomandat pastebin.com): https://imgur.com/a/5auy5u5 Alte detalii: - Edited May 25, 2018 by iPanter Link to comment Share on other sites More sharing options...
Administrator Leonard Posted May 25, 2018 Administrator Share Posted May 25, 2018 Poti face mult mai usor: format( string, sizeof string, "Castig: $%s\nCastig total: $%s\nTimp job: %s", FormatNumber( money ), FormatNumber( money + bonus ), CalculeazaTimp2( WorkingTime[ playerid ] ) ); PlayerTextDrawSetString( playerid, JobTD[ playerid ][ 0 ], string ); for( new i = 0; i { PlayerTextDrawShow( playerid, JobTD[ playerid ][ i ] ); } SetTimerEx( "numeTimer", 500, 0, "d", playerid ); www.liberty.mp Link to comment Share on other sites More sharing options...
iPanter Posted May 25, 2018 Author Share Posted May 25, 2018 Poti face mult mai usor: format( string, sizeof string, "Castig: $%s\nCastig total: $%s\nTimp job: %s", FormatNumber( money ), FormatNumber( money + bonus ), CalculeazaTimp2( WorkingTime[ playerid ] ) ); PlayerTextDrawSetString( playerid, JobTD[ playerid ][ 0 ], string ); for( new i = 0; i < 2; i++ ) { PlayerTextDrawShow( playerid, JobTD[ playerid ][ i ] ); } SetTimerEx( "numeTimer", 500, 0, "d", playerid ); Multumesc, dar de ce primesc erorile astea la td? https://imgur.com/a/uvMQ0Dq Link to comment Share on other sites More sharing options...
Administrator Leonard Posted May 25, 2018 Administrator Share Posted May 25, 2018 @@iPanter Redenumeste textdraw-ul pentru titlu in JobTD[ playerid ][ 1 ] Si textdraw-ul pentru continut (castig, s.a.m.d) in JobTD[ playerid ][ 0 ] Si ai sa scapi de warning-uri. www.liberty.mp Link to comment Share on other sites More sharing options...
iPanter Posted May 25, 2018 Author Share Posted May 25, 2018 @ https://imgur.com/a/PigDXAW Link to comment Share on other sites More sharing options...
Administrator Leonard Posted May 25, 2018 Administrator Share Posted May 25, 2018 Defineste variabila new PlayerText: JobTD[MAX_PLAYERS][2]; Iar daca o ai definita deja, modific-o. www.liberty.mp Link to comment Share on other sites More sharing options...
iPanter Posted May 25, 2018 Author Share Posted May 25, 2018 Defineste variabila new PlayerText: JobTD[MAX_PLAYERS][2]; Iar daca o ai definita deja, modific-o. Rezolvat, multumesc! Link to comment Share on other sites More sharing options...
Administrator Leonard Posted May 25, 2018 Administrator Share Posted May 25, 2018 Problema rezolvata. Locked www.liberty.mp Link to comment Share on other sites More sharing options...
Recommended Posts