17.06.2012, 19:25
Well, I have been following the tutorials in samp wiki , and basically it says i have to put this in right sections
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
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 (?)
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);
}
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;
}
PD: The last error I definetly dont understand , since i only have that word once in the whole script (?)