Textdraw Problems
#3

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Mind showing us lines 715 - 747, not just 737-747
Ok so here are the lines of the errors and a few previous ones. The errors are :

C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\hooligansdm.pwn(939) : error 055: start of function body without function header
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\hooligansdm.pwn(942) : error 010: invalid function or declaration
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\hooligansdm.pwn(943) : error 010: invalid function or declaration
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\hooligansdm.pwn(96 : error 055: start of function body without function header
C:\Users\Daniel\Desktop\samp03e_svr_win32\gamemode s\hooligansdm.pwn(970) : error 021: symbol already defined: "TextDrawShowForPlayer"


Here go the lines:

ERROR 055 , 010 , 010 :

LINES 929-944


pawn Код:
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("My Gamemode");
    AddPlayerClass(105,2592.9792,2791.0059,10.8203,84.3642,0,0,0,0,0,0);//grove
    AddStaticVehicle(442,-2544.2837,604.6541,14.2584,87.0854,40,36); // 348

    return 1;
}
{
    // 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;
}
^
I forgot to add public ongamemodeinit , thats where all that is at
Now the next error , 055 and 021 .
Lines 951-971
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 2592.9792,2791.0059,10.8203);
    SetPlayerFacingAngle(playerid,84.3642);
    SetPlayerCameraPos(playerid,2590.9873,2790.8960,10.8203);
    SetPlayerCameraLookAt(playerid, 2592.9792,2791.0059,10.8203);
    return 1;
}

public OnPlayerConnect(playerid)
{
    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;
}
{
    //This is used to show the player the textdraw when they connect.
    TextDrawShowForPlayer(playerid,welcomeText);
}

PD: the lines from the first errors have changed as I have added a few objects in the meanwhile of your answer, but it is still the same problems as in the first.
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)