How to fix this Error
#1

Код:
stock ShowMainMenuGUI(playerid) {
	InsideMainMenu[playerid] = 1;
	new string[22];

 	format(string, sizeof(string), "Players online: %d", Iter_Count(Player));
        TextDrawSetString(MainMenuTxtdraw[7], string);   <-----7043

	for(new i = 0; i < 12; i++) {
		TextDrawShowForPlayer(playerid, MainMenuTxtdraw[i]);
	}

	return 1;
}
Код:
C:\Documents and Settings\drei\Desktop\PRP\gamemodes\PRP.pwn(7043) : error 017: undefined symbol "MainMenuTxtdraw"
C:\Documents and Settings\drei\Desktop\PRP\gamemodes\PRP.pwn(7043) : warning 215: expression has no effect
C:\Documents and Settings\drei\Desktop\PRP\gamemodes\PRP.pwn(7043) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\drei\Desktop\PRP\gamemodes\PRP.pwn(7043) : error 029: invalid expression, assumed zero
C:\Documents and Settings\drei\Desktop\PRP\gamemodes\PRP.pwn(7043) : fatal error 107: too many error messages on one line

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


7 Errors.
Help me plsss
Reply
#2

You should have a variable like this at the top of your scipt
pawn Код:
new Text:MainMenuTxtdraw[12];
Reply
#3

Reply
#4

i got error
Reply
#5

The MainMenuTxtdraw must get created first.
Reply
#6

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)