GameMode Exit + Defines error.
#1

pawn Код:
public OnGameModeExit()
{
    TextDrawDestroy(TextDraw0);
    TextDrawDestroy(TextDraw1);
    TextDrawDestroy(TextDraw2);
    TextDrawDestroy(TextDraw3);
    TextDrawDestroy(TextDraw4);
    TextDrawDestroy(TextDraw5);
    TextDrawDestroy(TextDraw6);
    TextDrawDestroy(TextDraw7);
    TextDrawDestroy(TextDraw8);
    TextDrawDestroy(usebox);
    return 1;
}
Lines 821 - 834

Код:
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(823) : error 017: undefined symbol "TextDraw0"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(824) : error 017: undefined symbol "TextDraw1"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(825) : error 017: undefined symbol "TextDraw2"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(826) : error 017: undefined symbol "TextDraw3"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(827) : error 017: undefined symbol "TextDraw4"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(828) : error 017: undefined symbol "TextDraw5"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(829) : error 017: undefined symbol "TextDraw6"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(830) : error 017: undefined symbol "TextDraw7"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(831) : error 017: undefined symbol "TextDraw8"
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(832) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
The Defines
pawn Код:
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new PlayerText:usebox[MAX_PLAYERS];
Reply
#2

The 'd' must be capital.

pawn Код:
new Text:TextDraw0;
new Text:TextDraw1;
new Text:TextDraw2;
new Text:TextDraw3;
new Text:TextDraw4;
new Text:TextDraw5;
new Text:TextDraw6;
new Text:TextDraw7;
new Text:TextDraw8;
new PlayerText:usebox[MAX_PLAYERS];
And change the destroy function from player textdraw to this.

pawn Код:
PlayerTextDrawDestroy(playerid, usebox[playerid]);
Reply
#3

Thank You Skimmer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)