PDA

View Full Version : GameMode Exit + Defines error.


RandomDude
27/07/2013, 12:26 PM
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 (c) 1997-2006, ITB CompuPhase


10 Errors.

The Defines

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];

Skimmer
27/07/2013, 12:29 PM
The 'd' must be capital.

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.

PlayerTextDrawDestroy(playerid, usebox[playerid]);

RandomDude
27/07/2013, 01:21 PM
Thank You Skimmer.