Blackbox help
#1

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.
Reply
#2

you are not define your MainMenuTxtdraw

define it first
Reply
#3

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

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

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

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.
Reply
#7

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

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.
Reply
#9

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];
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)