SA-MP Forums Archive
error 001: expected token: ",", but found "-identifier-" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 001: expected token: ",", but found "-identifier-" (/showthread.php?tid=468060)



error 001: expected token: ",", but found "-identifier-" - viveka27 - 06.10.2013

Код:
Info[0] = TextDrawCreate(-6.875000, 438.083526, "_") ;
	TextDrawLetterSize            ( Info [ 0 ]        , 0.449999    , 1.600000                                                                                                                            ) ;
	TextDrawTextSize              ( Info [ 0 ]        , 695.625000  , -33.833328                                                                                                                          ) ;
	TextDrawUseBox                ( Info [ 0 ]        , true                                                                                                                                              ) ;
    TextDrawBoxColor              ( Info [ 0 ]        , 255                                                                                                                                               ) ;
	Info [ 1 ] = TextDrawCreate   ( 3.750000          , 436.333435  , "~w~Untuk List Command -~h~~y~ /help -~w~ Spawn Kendaraan -~h~~y~ /veh -~w~v Mainan -~h~~y~ /attachments" ) ;
	TextDrawLetterSize            ( Info [ 1 ]        , 0.233124    , 1.074999                                                                                                                            ) ;
	TextDrawSetOutline            ( Info [ 1 ]        , 1                                                                                                                                                 ) ;
	TextDrawBackgroundColor       ( Info [ 1 ]        , 51                                                                                                                                                ) ;
	TextDrawFont                  ( Info [ 1 ]        , 2                                                                                                                                                 ) ;
	Info [ 2 ] = TextDrawCreate   ( 505.000000        , 436.333435  , "~h~~y~-~w~ ALL TELEPORTS -~h~~y~ /teles /teles2"                                                                                   ) ;
	TextDrawLetterSize            ( Info [ 2 ]        , 0.233124    , 1.074999                                                                                                                            ) ;
	TextDrawSetOutline            ( Info [ 2 ]        , 1                                                                                                                                                 ) ;
	TextDrawBackgroundColor       ( Info [ 2 ]        , 51 // This                                                                                                                                               ) ;
	TextDrawFont                  ( Info [ 2 ]        , 2// This
Error:
error 001: expected token: ",", but found "-identifier-"

How To Fix It Thank You


Re: error 001: expected token: ",", but found "-identifier-" - Konstantinos - 06.10.2013

Your code was not readable, I don't even know where the mistake was; however, it compiles.
pawn Код:
Info[ 0 ] = TextDrawCreate( -6.875000, 438.083526, "_" );
TextDrawLetterSize( Info[ 0 ], 0.449999, 1.600000 );
TextDrawTextSize( Info[ 0 ], 695.625000, -33.833328 ) ;
TextDrawUseBox( Info[ 0 ], true );
TextDrawBoxColor( Info[ 0 ], 255 );

Info[ 1 ] = TextDrawCreate( 3.750000, 436.333435, "~w~Untuk List Command -~h~~y~ /help -~w~ Spawn Kendaraan -~h~~y~ /veh -~w~v Mainan -~h~~y~ /attachments" );
TextDrawLetterSize( Info[ 1 ], 0.233124, 1.074999 );
TextDrawSetOutline( Info[ 1 ], 1 );
TextDrawBackgroundColor( Info[ 1 ], 51 );
TextDrawFont( Info[ 1 ], 2 );

Info[ 2 ] = TextDrawCreate( 505.000000, 436.333435, "~h~~y~-~w~ ALL TELEPORTS -~h~~y~ /teles /teles2" ) ;
TextDrawLetterSize( Info[ 2 ], 0.233124, 1.074999 );
TextDrawSetOutline( Info[ 2 ], 1 );
TextDrawBackgroundColor( Info[ 2 ], 51 );
TextDrawFont( Info[ 2 ], 2 );



Re: error 001: expected token: ",", but found "-identifier-" - viveka27 - 06.10.2013

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Your code was not readable, I don't even know where the mistake was; however, it compiles.
pawn Код:
Info[ 0 ] = TextDrawCreate( -6.875000, 438.083526, "_" );
TextDrawLetterSize( Info[ 0 ], 0.449999, 1.600000 );
TextDrawTextSize( Info[ 0 ], 695.625000, -33.833328 ) ;
TextDrawUseBox( Info[ 0 ], true );
TextDrawBoxColor( Info[ 0 ], 255 );

Info[ 1 ] = TextDrawCreate( 3.750000, 436.333435, "~w~Untuk List Command -~h~~y~ /help -~w~ Spawn Kendaraan -~h~~y~ /veh -~w~v Mainan -~h~~y~ /attachments" );
TextDrawLetterSize( Info[ 1 ], 0.233124, 1.074999 );
TextDrawSetOutline( Info[ 1 ], 1 );
TextDrawBackgroundColor( Info[ 1 ], 51 );
TextDrawFont( Info[ 1 ], 2 );

Info[ 2 ] = TextDrawCreate( 505.000000, 436.333435, "~h~~y~-~w~ ALL TELEPORTS -~h~~y~ /teles /teles2" ) ;
TextDrawLetterSize( Info[ 2 ], 0.233124, 1.074999 );
TextDrawSetOutline( Info[ 2 ], 1 );
TextDrawBackgroundColor( Info[ 2 ], 51 );
TextDrawFont( Info[ 2 ], 2 );
Thank You For Your Help REP +