Textdraw error
#1

I seem to get this error with my textdraw
Код:
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2599) : error 055: start of function body without function header
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2607) : error 010: invalid function or declaration
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2699) : error 055: start of function body without function header
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2701) : error 010: invalid function or declaration
C:\Users\Josh\Desktop\Creekside\csrp.pwn(43243) : warning 203: symbol is never used: "weburl"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
I have
Код:
new Text:weburl;
At the top of my script
Код:
{
	weburl = TextDrawCreate(238 ,460 , "www.csroleplay.net");
	TextDrawFont(weburl , 0);
	TextDrawLetterSize(weburl , 0.6, 4.2);
	TextDrawColor(weburl , 0xffffffFF);
	TextDrawSetOutline(weburl , true);
	TextDrawSetProportional(weburl , true);
	TextDrawSetShadow(weburl , 1);
	return 1;
}
In ongamemodeinit
Код:
{
	TextDrawShowForPlayer(playerid, weburl);
	return 1;
}
In onplayerconnect
I don't see the problem, can somebody help please, thanks.
Reply
#2

PHP код:
public OnGameModeInit()
{
    
weburl TextDrawCreate(238 ,460 "www.csroleplay.net");
    
TextDrawFont(weburl 0);
    
TextDrawLetterSize(weburl 0.64.2);
    
TextDrawColor(weburl 0xffffffFF);
    
TextDrawSetOutline(weburl true);
    
TextDrawSetProportional(weburl true);
    
TextDrawSetShadow(weburl 1);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForPlayer(playeridweburl);
    return 
1;

Reply
#3

Huh, i'm confused.. You didn't change anything?
Reply
#4

I shouldn't change anything.
Everything is right.
Reply
#5

Why do I seem to get errors then?
Reply
#6

try this .
PHP код:
public OnGameModeInit()
{
    
weburl TextDrawCreate(238,460"www.csroleplay.net");
    
TextDrawFont(weburl0);
    
TextDrawLetterSize(weburl0.64.2);
    
TextDrawColor(weburl0xffffffFF);
    
TextDrawSetOutline(weburltrue);
    
TextDrawSetProportional(weburltrue);
    
TextDrawSetShadow(weburl1);
    return 
1;
}
public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForPlayer(playeridweburl);
    return 
1;

Reply
#7

Are you sure this is the right code line??
Reply
#8

You can try it ...
Reply
#9

Still get
Код:
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2598) : error 055: start of function body without function header
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2606) : error 010: invalid function or declaration
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2698) : error 055: start of function body without function header
C:\Users\Josh\Desktop\Creekside\csrp.pwn(2700) : error 010: invalid function or declaration
C:\Users\Josh\Desktop\Creekside\csrp.pwn(43242) : warning 203: symbol is never used: "weburl"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
With that code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)