stupid error
#1

When i compile my script it gives me this error
Код:
error 021: symbol already defined: "TextDrawShowForPlayer"
I only have 1 thing of that in my script so idk the problem :S
Reply
#2

Do you have latest sa-mp includes? That can be one of the reasons, or maybe you're missing a bracket.
It's best if you show the part of code where the error appears.
Reply
#3

*mind reads the surrounding code of the error*
Reply
#4

This is were the error is : Line 142:
Код:
TextDrawShowForPlayer(playerid,stunt);
And this is line 414-418
Код:
stunt = TextDrawCreate(380, 444, "Stunt 'N Fun Server");
TextDrawAlignment(stunt, 1);
TextDrawFont(stunt, 2);
TextDrawLetterSize(stunt, 5, 1);
TextDrawColor(stunt, 0xF6F6F6AA);
Reply
#5

Quote:
Originally Posted by Futurezx
This is were the error is : Line 142:
Код:
TextDrawShowForPlayer(playerid,stunt);
And this is line 414-418
Код:
stunt = TextDrawCreate(380, 444, "Stunt 'N Fun Server");
TextDrawAlignment(stunt, 1);
TextDrawFont(stunt, 2);
TextDrawLetterSize(stunt, 5, 1);
TextDrawColor(stunt, 0xF6F6F6AA);
Under what public you have TextDrawCreate?
Reply
#6

Under

public OnGameModeInit()
Reply
#7

Hope u can help me fix this
Reply
#8

Quote:
Originally Posted by Futurezx
When i compile my script it gives me this error
Код:
error 021: symbol already defined: "TextDrawShowForPlayer"
I only have 1 thing of that in my script so idk the problem :S
That error ussally means that it has already been used once in your script search it in your script, by using the search button in the pawn program, and search "TextDrawShowForPlayer", and see how many you have in the script if you have more than one, delete one off them and see if that fixes the error.
Reply
#9

You can`t have it under OnGameModeInit,because OnGameModeInit(nothing) doesn`t have
playerid param,and TextDrawShowForPlayer(playerid,textdraw) has it.

EDIT: Burridge,he says he doesn`t have any other TextDrawShowForPlayer in his script
Reply
#10

Where do i put it under then? And how i fix this error because i only have 1 i searched in my whole script >.<
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)