Another problem with Classes ||HELP|| +Rep for the Helper and much LOVE ||
#1

it gives me a Bunch of errors,but ONLY When i added the THIRD Class of MEDICS
There is something missed in the THIRD Class i'm sure of it,and ONLY the Third class!

Код:
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(69) : warning 217: loose indentation
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(318) : error 017: undefined symbol "SetPlayerFacingAngel"
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(322) : warning 217: loose indentation
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(324) : warning 217: loose indentation
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(324) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(324) : error 004: function "OnPlayerConnect" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(336) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(336) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(336) : error 004: function "OnPlayerDisconnect" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(344) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(344) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(344) : error 004: function "OnPlayerSpawn" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(348) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(348) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(348) : error 004: function "OnPlayerDeath" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(353) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(353) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(353) : error 004: function "OnVehicleSpawn" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(358) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(358) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(358) : error 004: function "OnVehicleDeath" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(363) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(363) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(363) : error 004: function "OnPlayerText" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(368) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(368) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(368) : error 004: function "OnPlayerCommandText" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(370) : error 017: undefined symbol "cmdtext"
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(379) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(379) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(379) : error 004: function "OnPlayerEnterVehicle" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(384) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(384) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(384) : error 004: function "OnPlayerExitVehicle" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(389) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(389) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(389) : error 004: function "OnPlayerStateChange" is not implemented
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(394) : warning 225: unreachable code
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(394) : error 029: invalid expression, assumed zero
C:\DOCUME~1\SOUADU~1.000\Bureau\MYSERV~1\GAMEMO~1\ms.pwn(394) : error 004: function "OnPlayerEnterCheckpoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Lines:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SetPlayerPos(playerid, 2495.0413,-1685.2115,13.5115);
        SetPlayerCameraPos(playerid, 2495.0134,-1681.1893,13.3387);
        SetPlayerCameraLookAt(playerid, 2495.0413,-1685.2115,13.5115);
        GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
        SetPlayerColor(playerid, 0x2D964DFF);
        SetPlayerFacingAngle(playerid, 360.000);
        ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 1)
    {
        SetPlayerPos(playerid, 369.2329,1916.1652,18.3985);
        SetPlayerCameraPos(playerid, 365.9307,1912.9822,17.6406);
        SetPlayerCameraLookAt(playerid, 369.2329,1916.1652,18.3985);
        GameTextForPlayer(playerid, "Army", 5000, 4);
        SetPlayerColor(playerid, 0xC4840EFF);
        SetPlayerFacingAngle(playerid, 110.000);
        ApplyAnimation(playerid, "GHANDS", "gsign5LH", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 2)
    {
        SetPlayerPos(playerid, 1174.7109,-1323.8867,14.5938);
        SetPlayerCameraPos(playerid, 1183.3655,-1324.1521,13);
        SetPlayerCameraLookAt(playerid, 1174.7109,-1323.8867,14.5938);
        GameTextForPlayer(playerid, " ~h~~r~Medic", 5000, 4);
        SetPlayerColor(playerid, 0xF598E4FF);
        SetPlayerFacingAngel(playerid, 270.000);
        ApplyAnimation(playerid, "DANCING", "dnce_M_b", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SetPlayerPos(playerid, 2495.0413,-1685.2115,13.5115);
        SetPlayerCameraPos(playerid, 2495.0134,-1681.1893,13.3387);
        SetPlayerCameraLookAt(playerid, 2495.0413,-1685.2115,13.5115);
        GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
        SetPlayerColor(playerid, 0x2D964DFF);
        SetPlayerFacingAngle(playerid, 360.000);
        ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 1)
    {
        SetPlayerPos(playerid, 369.2329,1916.1652,18.3985);
        SetPlayerCameraPos(playerid, 365.9307,1912.9822,17.6406);
        SetPlayerCameraLookAt(playerid, 369.2329,1916.1652,18.3985);
        GameTextForPlayer(playerid, "Army", 5000, 4);
        SetPlayerColor(playerid, 0xC4840EFF);
        SetPlayerFacingAngle(playerid, 110.000);
        ApplyAnimation(playerid, "GHANDS", "gsign5LH", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 2)
    {
        SetPlayerPos(playerid, 1174.7109,-1323.8867,14.5938);
        SetPlayerCameraPos(playerid, 1183.3655,-1324.1521,13);
        SetPlayerCameraLookAt(playerid, 1174.7109,-1323.8867,14.5938);
        GameTextForPlayer(playerid, " ~h~~r~Medic", 5000, 4);
        SetPlayerColor(playerid, 0xF598E4FF);
        SetPlayerFacingAngel(playerid, 270.000);
        ApplyAnimation(playerid, "DANCING", "dnce_M_b", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
        }
        return 1;
}
Reply
#3

You missed a brace in a certain position, Make sure you get them all in the correct place
Reply
#4

May i ask you Yamoo what is differences

Edit: I am shit knackered, sorry did not saw it lolz.
Reply
#5

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0)
    {
        SetPlayerPos(playerid, 2495.0413,-1685.2115,13.5115);
        SetPlayerCameraPos(playerid, 2495.0134,-1681.1893,13.3387);
        SetPlayerCameraLookAt(playerid, 2495.0413,-1685.2115,13.5115);
        GameTextForPlayer(playerid, "~g~Grove", 5000, 5);
        SetPlayerColor(playerid, 0x2D964DFF);
        SetPlayerFacingAngle(playerid, 360.000);
        ApplyAnimation(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 1)
    {
        SetPlayerPos(playerid, 369.2329,1916.1652,18.3985);
        SetPlayerCameraPos(playerid, 365.9307,1912.9822,17.6406);
        SetPlayerCameraLookAt(playerid, 369.2329,1916.1652,18.3985);
        GameTextForPlayer(playerid, "Army", 5000, 4);
        SetPlayerColor(playerid, 0xC4840EFF);
        SetPlayerFacingAngle(playerid, 110.000);
        ApplyAnimation(playerid, "GHANDS", "gsign5LH", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    else if(classid == 2)
    {
        SetPlayerPos(playerid, 1174.7109,-1323.8867,14.5938);
        SetPlayerCameraPos(playerid, 1183.3655,-1324.1521,13);
        SetPlayerCameraLookAt(playerid, 1174.7109,-1323.8867,14.5938);
        GameTextForPlayer(playerid, " ~h~~r~Medic", 5000, 4);
        SetPlayerColor(playerid, 0xF598E4FF);
        SetPlayerFacingAngel(playerid, 270.000);
        ApplyAnimation(playerid, "DANCING", "dnce_M_b", 4.0, 0, 0, 0, 0, 0);
        SetPlayerVirtualWorld(playerid, 0);
        SetPlayerInterior(playerid, 0);
    }
    }
    return 1;
}
Fixed, and he's missing two braces down at the bottom lol. (Sorry edited for grammar mistakes lol)
Reply
#6

Quote:
Originally Posted by Davz*|*Criss
Посмотреть сообщение
May i ask you Yamoo what is differences

Edit: I am shit knackered, sorry did not saw it lolz.
Your not knackered. You jump to conclusions as with every one of your posts.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)