Textdraw Problems
#1

Well, I have been following the tutorials in samp wiki , and basically it says i have to put this in right sections
pawn Код:
// This variable is used to store the id of the textdraw
// so that we can use it throught the script
new Text:welcomeText;
 
public OnGameModeInit()
{
    // This line is used to create the textdraw.
    // Note: This creates a textdraw without any formatting.
    welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");
    return 1;
}
 
public OnPlayerConnect(playerid)
{
    //This is used to show the player the textdraw when they connect.
    TextDrawShowForPlayer(playerid,welcomeText);
}
So when I put this in , I get these errors.

C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\mygamemode.pwn(716) : error 055: start of function body without function header
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\mygamemode.pwn(719) : error 010: invalid function or declaration
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\mygamemode.pwn(720) : error 010: invalid function or declaration
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\mygamemode.pwn(744) : error 055: start of function body without function header
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\mygamemode.pwn(746) : error 021: symbol already defined: "TextDrawShowForPlayer"

Any solution? Not a pro scripter, (using tutorials to learn and stuff) ,and if i get these errors idk what to do tbh.
I specifically dont understand the error in 746 ... well ill also post like the bit i have , maybe you can tell me what the function header problem is .

737-747

pawn Код:
{
    new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "%s has joined the server", pname);
    SendClientMessageToAll(0xAAAAAAAA, string);
    return 1;
}
{
    TextDrawShowForPlayer(playerid,welcomeText);
    return 1;
}
So well...Any help is welcome , always willing to learn

PD: The last error I definetly dont understand , since i only have that word once in the whole script (?)
Reply


Messages In This Thread
Textdraw Problems - by daastle - 17.06.2012, 19:25
Re: Textdraw Problems - by Kindred - 17.06.2012, 20:44
Respuesta: Re: Textdraw Problems - by daastle - 17.06.2012, 20:58
Respuesta: Textdraw Problems - by daastle - 18.06.2012, 10:08
Re: Textdraw Problems - by [MM]RoXoR[FS] - 18.06.2012, 10:17
Respuesta: Textdraw Problems - by daastle - 18.06.2012, 10:22
Re: Textdraw Problems - by [MM]RoXoR[FS] - 18.06.2012, 11:15
Respuesta: Re: Textdraw Problems - by daastle - 18.06.2012, 13:42
Re: Textdraw Problems - by marsmubarak - 06.07.2013, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)