SA-MP Forums Archive
Blackbox help - 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: Blackbox help (/showthread.php?tid=399142)



Blackbox help - MichaelWharton101 - 13.12.2012

I need help fixing this please.

Код:
	// ARP Title
	MainMenuTxtdraw[4] = TextDrawCreate(263.000000, 10.000000, "ARP");
	TextDrawBackgroundColor(MainMenuTxtdraw[4], 255);
	TextDrawFont(MainMenuTxtdraw[4], 2);
	TextDrawLetterSize(MainMenuTxtdraw[4], 0.910000, 4.400001);
	TextDrawColor(MainMenuTxtdraw[4], -1);
	TextDrawSetOutline(MainMenuTxtdraw[4], 0);
	TextDrawSetProportional(MainMenuTxtdraw[4], 1);
	TextDrawSetShadow(MainMenuTxtdraw[4], 1);
	textdrawscount++;
	// ARP Subtitle
	MainMenuTxtdraw[5] = TextDrawCreate(256.000000, 45.000000, "American Roleplay");
	TextDrawBackgroundColor(MainMenuTxtdraw[5], 255);
	TextDrawFont(MainMenuTxtdraw[5], 2);
	TextDrawLetterSize(MainMenuTxtdraw[5], 0.200000, 1.200001);
	TextDrawColor(MainMenuTxtdraw[5], -1);
	TextDrawSetOutline(MainMenuTxtdraw[5], 0);
	TextDrawSetProportional(MainMenuTxtdraw[5], 1);
	TextDrawSetShadow(MainMenuTxtdraw[5], 1);
	textdrawscount++;
	// ARP Version
	MainMenuTxtdraw[6] = TextDrawCreate(283.000000, 58.000000, SERVER_GM_TEXT);
	TextDrawBackgroundColor(MainMenuTxtdraw[6], 255);
	TextDrawFont(MainMenuTxtdraw[6], 2);
	TextDrawLetterSize(MainMenuTxtdraw[6], 0.200000, 1.200001);
	TextDrawColor(MainMenuTxtdraw[6], -65281);
	TextDrawSetOutline(MainMenuTxtdraw[6], 0);
	TextDrawSetProportional(MainMenuTxtdraw[6], 1);
	TextDrawSetShadow(MainMenuTxtdraw[6], 1);
Error

Код:
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2525) : error 017: undefined symbol "MainMenuTxtdraw"
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2525) : warning 215: expression has no effect
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2525) : error 001: expected token: ";", but found "]"
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2525) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2525) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Blackbox help - Horrible - 13.12.2012

you are not define your MainMenuTxtdraw

define it first


Re: Blackbox help - Windrush - 13.12.2012

Can I See Your
pawn Код:
#define MainMenuTxtdraw



Re: Blackbox help - Horrible - 13.12.2012

Quote:
Originally Posted by windrush
Посмотреть сообщение
Can I See Your
pawn Код:
#define MainMenuTxtdraw
not define i think..
but :
pawn Код:
new MainMenuTxtdraw



Re: Blackbox help - Windrush - 13.12.2012

Sorry.. Can I See This?
pawn Код:
#define SERVER_GM_TEXT



Re: Blackbox help - MichaelWharton101 - 13.12.2012

Quote:
Originally Posted by Horrible
Посмотреть сообщение
you are not define your MainMenuTxtdraw

define it first
I defined it but now I get this

Код:
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2526) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2526) : warning 215: expression has no effect
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2526) : error 001: expected token: ";", but found "]"
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2526) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2526) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Blackbox help - [HK]Ryder[AN] - 13.12.2012

it should be
pawn Код:
new MainMenuTxtDraw[6];



Re: Blackbox help - MichaelWharton101 - 13.12.2012

well still 4 errors after that...

Код:
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2529) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2529) : warning 215: expression has no effect
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2529) : error 001: expected token: ";", but found "]"
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2529) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2529) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: Blackbox help - Laure - 13.12.2012

Define each of your MainMenuTxtdraw with their numbers
for example if you have 1 to 3 in number
Код:
new MainMenuTxtdraw[1];
new MainMenuTxtdraw[2];
new MainMenuTxtdraw[3];



Re: Blackbox help - MichaelWharton101 - 13.12.2012

Quote:
Originally Posted by Imperor
Посмотреть сообщение
Define each of your MainMenuTxtdraw with their numbers
for example if you have 1 to 3 in number
Код:
new MainMenuTxtdraw[1];
new MainMenuTxtdraw[2];
new MainMenuTxtdraw[3];
I got this after I did what you said.

Код:
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(92) : error 020: invalid symbol name ""
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(93) : error 020: invalid symbol name ""
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(94) : error 020: invalid symbol name ""
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2531) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2531) : warning 215: expression has no effect
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2531) : error 001: expected token: ";", but found "]"
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2531) : error 029: invalid expression, assumed zero
C:\Users\Michael\Desktop\*\other\GTA\My server\ARP\gamemodes\ARP.pwn(2531) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.