Textdraw 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)
+--- Thread: Textdraw error (
/showthread.php?tid=394283)
Textdraw error -
Joshswag - 21.11.2012
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
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.
Re: Textdraw error -
ThePhenix - 21.11.2012
PHP код:
public OnGameModeInit()
{
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;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, weburl);
return 1;
}
Re: Textdraw error -
Joshswag - 21.11.2012
Huh, i'm confused.. You didn't change anything?
Re: Textdraw error -
ThePhenix - 21.11.2012
I shouldn't change anything.
Everything is right.
Re: Textdraw error -
Joshswag - 22.11.2012
Why do I seem to get errors then?
Re: Textdraw error -
M3mPHi$_S3 - 22.11.2012
try this .
PHP код:
public OnGameModeInit()
{
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;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, weburl);
return 1;
}
Re: Textdraw error -
dr.lozer - 22.11.2012
Are you sure this is the right code line??
Re: Textdraw error -
M3mPHi$_S3 - 22.11.2012
You can try it ...
Re: Textdraw error -
Joshswag - 22.11.2012
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.