SA-MP Forums Archive
[Ajuda] Como seria o cod ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Como seria o cod ? (/showthread.php?tid=481899)



Como seria o cod ? - JoaoMonteiro452 - 18.12.2013

Como й este codigo ? :/ da 2 warning's..

PHP код:
        if(APlayerData[playerid][SpeedometerText] < 10)
        
format(speed_string50"0%i"final_speed_int);
        else if(
APlayerData[playerid][SpeedometerText] > 10)
        
format(speed_string50"%i"final_speed_int);
        
TextDrawSetString(APlayerData[playerid][SpeedometerText], speed_string); 



Re: Como seria o cod ? - Don_Speed - 18.12.2013

PHP код:
        if(APlayerData[playerid][SpeedometerText] < 10) {
        
format(speed_string50"0%i"final_speed_int);
        } else if(
APlayerData[playerid][SpeedometerText] > 10) {
        
format(speed_string50"%i"final_speed_int);
        }
        
TextDrawSetString(APlayerData[playerid][SpeedometerText], speed_string); 



Re: Como seria o cod ? - Locky_ - 18.12.2013

PHP код:
        if(final_speed_int10)
        
format(speed_string50"0%i"final_speed_int);
        else if(
final_speed_int 10)
        
format(speed_string50"%i"final_speed_int);
        
TextDrawSetString(APlayerData[playerid][SpeedometerText], speed_string); 



Re: Como seria o cod ? - JoaoMonteiro452 - 18.12.2013

Quote:
Originally Posted by Don_Speed
Посмотреть сообщение
PHP код:
        if(APlayerData[playerid][SpeedometerText] < 10) {
        
format(speed_string50"0%i"final_speed_int);
        } else if(
APlayerData[playerid][SpeedometerText] > 10) {
        
format(speed_string50"%i"final_speed_int);
        }
        
TextDrawSetString(APlayerData[playerid][SpeedometerText], speed_string); 
PHP код:
C:\Users\Admin\Desktop\Brasil Caminhoneiro\Brasil Ultimate Trucker v4.1.2 R4\pawno\include\PPC_Speedometer.inc(642) : warning 213tag mismatch
C
:\Users\Admin\Desktop\Brasil Caminhoneiro\Brasil Ultimate Trucker v4.1.2 R4\pawno\include\PPC_Speedometer.inc(644) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings
.
linha 624 = if(APlayerData[playerid][SpeedometerText] < 10) {
linha 644 = } else if(APlayerData[playerid][SpeedometerText] > 10) { 



Re: Como seria o cod ? - JoaoMonteiro452 - 18.12.2013

Quote:
Originally Posted by Nickvj7
Посмотреть сообщение
PHP код:
        if(final_speed_int10)
        
format(speed_string50"0%i"final_speed_int);
        else if(
final_speed_int 10)
        
format(speed_string50"%i"final_speed_int);
        
TextDrawSetString(APlayerData[playerid][SpeedometerText], speed_string); 
vlw funcionou +rep nos dois por terem ajudado


Re: Como seria o cod ? - Don_Speed - 18.12.2013

Quote:
Originally Posted by JoaoMonteiro452
Посмотреть сообщение
PHP код:
C:\Users\Admin\Desktop\Brasil Caminhoneiro\Brasil Ultimate Trucker v4.1.2 R4\pawno\include\PPC_Speedometer.inc(642) : warning 213tag mismatch
C
:\Users\Admin\Desktop\Brasil Caminhoneiro\Brasil Ultimate Trucker v4.1.2 R4\pawno\include\PPC_Speedometer.inc(644) : warning 213tag mismatch
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
2 Warnings
.
linha 624 = if(APlayerData[playerid][SpeedometerText] < 10) {
linha 644 = } else if(APlayerData[playerid][SpeedometerText] > 10) { 
Kkkk nem tinha visto a variavel , depois que o nick posto que reparei