SA-MP Forums Archive
[HELP]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: [HELP]error 001: expected token: ";", but found "-identifier-" (/showthread.php?tid=540059)



[HELP]error 001: expected token: ";", but found "-identifier-" - EgyptForLife - 02.10.2014

Here is the error :
Код:
C:\Users\SA-MP\Desktop\0.3x actualus\gamemodes\mode.pwn(1938) : error 001: expected token: ";", but found "-identifier-"
C:\Users\SA-MP\Desktop\0.3x actualus\gamemodes\mode.pwn(49409) : warning 203: symbol is never used: "TextDraw"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
My Code :
pawn Код:
new TextDraw
 TextDrawCreate(635.000000,430.000000,"Fun-Generation");
 TextDrawAlignment(Textdraw0,3);
 TextDrawBackgroundColor(Textdraw0,0x000000ff);
 TextDrawFont(Textdraw0,1);
 TextDrawLetterSize(Textdraw0,0.699999,1.600000);
 TextDrawColor(Textdraw0,0xffffffff);
 TextDrawSetProportional(Textdraw0,1);
 TextDrawSetShadow(Textdraw0,1);



Re: [HELP]error 001: expected token: ";", but found "-identifier-" - mant - 02.10.2014

change it to
Quote:

new TextDraw0

and show line 1938
mashi mestnek


Respuesta: [HELP]error 001: expected token: ";", but found "-identifier-" - !R1Ch@rD! - 02.10.2014

pawn Код:
new TextDraw0;
you lack 0 and ;


Re: [HELP]error 001: expected token: ";", but found "-identifier-" - FloxX - 02.10.2014

Put On Your Script
Quote:

new Textdraw;

why no zero (0)? because you get this
Quote:

warning 203: symbol is never used: "TextDraw"




Re: [HELP]error 001: expected token: ";", but found "-identifier-" - EgyptForLife - 02.10.2014

I forgot to edit the post :
I changed it and another error appears :
pawn Код:
new Text:Logo;
  Logo = TextDrawCreate(635.000000,430.000000,"Fun-Generation");
  TextDrawAlignment(Logo,3);
  TextDrawBackgroundColor(Logo,0x000000ff);
  TextDrawFont(Logo,1);
  TextDrawLetterSize(Logo,0.699999,1.600000);
  TextDrawColor(Logo,COLOR_BLUE);
  TextDrawSetProportional(Logo,1);
  TextDrawSetShadow(Logo,1);
Код:
C:\Users\SA-MP\Desktop\0.3x actualus\gamemodes\mode.pwn(1938) : error 010: invalid function or declaration
C:\Users\SA-MP\Desktop\0.3x actualus\gamemodes\mode.pwn(49409) : warning 203: symbol is never used: "Logo"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.



Re: [HELP]error 001: expected token: ";", but found "-identifier-" - mant - 02.10.2014

try this
Quote:

new Text:Logo[MAX_PLAYERS];

Logo[playerid] = TextDrawCreate(635.000000,430.000000,"Fun-Generation");
TextDrawAlignment(Logo[playerid],3);
TextDrawBackgroundColor(Logo[playerid],0x000000ff);
TextDrawFont(Logo[playerid],1);
TextDrawLetterSize(Logo[playerid],0.699999,1.600000);
TextDrawColor(Logo,COLOR_BLUE);
TextDrawSetProportional(Logo[playerid],1);
TextDrawSetShadow(Logo[playerid],1);

garbha hatl2eha sh8ala


Respuesta: [HELP]error 001: expected token: ";", but found "-identifier-" - !R1Ch@rD! - 02.10.2014

is the only textdraw you have? or do you have others?

pawn Код:
new Text:Logo;
pawn Код:
Logo = TextDrawCreate(635.000000,430.000000,"Fun-Generation");
  TextDrawAlignment(Logo,3);
  TextDrawBackgroundColor(Logo,0x000000ff);
  TextDrawFont(Logo,1);
  TextDrawLetterSize(Logo,0.699999,1.600000);
  TextDrawColor(Logo,COLOR_BLUE);
  TextDrawSetProportional(Logo,1);
  TextDrawSetShadow(Logo,1);
  return 1;
}
there are? not if you have it set properly in OnGameModeInit

have you put it without the return 1; and }


Re: [HELP]error 001: expected token: ";", but found "-identifier-" - EgyptForLife - 02.10.2014

Problem solved, Thanks for your support!


Respuesta: Re: [HELP]error 001: expected token: ";", but found "-identifier-" - !R1Ch@rD! - 02.10.2014

Quote:
Originally Posted by EgyptForLife
Посмотреть сообщение
Problem solved, Thanks for your support!
Greetings nothing!!