SA-MP Forums Archive
stupid error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: stupid error (/showthread.php?tid=80431)



stupid error - Futurezx - 04.06.2009

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


Re: stupid error - Correlli - 04.06.2009

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.


Re: stupid error - efeX - 04.06.2009

*mind reads the surrounding code of the error*


Re: stupid error - Futurezx - 04.06.2009

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



Re: stupid error - Luka P. - 04.06.2009

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?


Re: stupid error - Futurezx - 04.06.2009

Under

public OnGameModeInit()


Re: stupid error - Futurezx - 04.06.2009

Hope u can help me fix this


Re: stupid error - Burridge - 04.06.2009

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.


Re: stupid error - Luka P. - 04.06.2009

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


Re: stupid error - Futurezx - 04.06.2009

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