[Help] Error's
#1

I copy a GiDan FilterScript in my GameMode, and I have error's:

Код:
IC_war.pwn(430) : error 001: expected token: ";", but found "}"
IC_war.pwn(684) : error 017: undefined symbol "ycmd_r"
IC_war.pwn(912) : error 017: undefined symbol "reason"
IC_war.pwn(1632) : error 014: invalid statement; not in switch
IC_war.pwn(1632) : warning 215: expression has no effect
IC_war.pwn(1632) : error 001: expected token: ";", but found ":"
IC_war.pwn(1632) : error 029: invalid expression, assumed zero
IC_war.pwn(1632) : fatal error 107: too many error messages on one line
Lines:
Код:
430 - 			}
684 - 	return ycmd_r(playerid, params, help);
912 -        if(sscanf(params, "us[48]", pplayerid,reason)) return SCM(playerid, COLOR_RED, "Koriљtenje: /freeze [ID/Dio imena]");
1632 -         {
Reply
#2

Any help ?
Reply
#3

Show lines 420-440

You don't have ycmd_r function
912 you are missing reason variable creation (something like "new reason[49];" )

Show lines 1600-1660
Reply
#4

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Show lines 420-440

You don't have ycmd_r function
912 you are missing reason variable creation (something like "new reason[49];" )

Show lines 1600-1660
I have error on public OnPlayerSpawn:

pawn Код:
public OnPlayerSpawn(playerid)
{
    if (P_Data[playerid][pMember] > 0)
    {
        switch(P_Data[playerid][pMember])
        {
            case 1:
            {
                SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
                SetPlayerFacingAngle(playerid, 270.1425);

                SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
            }
            case 2:
            {
                SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
                SetPlayerFacingAngle(playerid, 270.1425);

                SetPlayerSkin(playerid, P_Data[playerid][pOrgskin])
            }
        }
    }
    else if (P_Data[playerid][pLeader] > 0)
    {
        switch(P_Data[playerid][pLeader])
        {
            case 1:
            {
                SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
                SetPlayerFacingAngle(playerid, 270.1425);

                SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
            }
            case 2:
            {
                SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
                SetPlayerFacingAngle(playerid, 270.1425);

                SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
            }
        }
        if(GetPVarInt(playerid, "Join") == 1)
        {
            GivePlayerMoney(playerid, P_Data[playerid][pMoney]);
            SetPlayerScore(playerid, P_Data[playerid][pScore]);

            SetPVarInt(playerid, "Join", 0);
            if(P_Data[playerid][pWarn] >= 5)
            {
                Kick(playerid);
                SCM(playerid, C_WHITE, "Imaљ 5 warnova.");
                return 1;
            }
        }
    }
    return 1;
}

And here is lines 1600 - 1660
pawn Код:
YCMD:rsupport(playerid, params[], help)
{
        #pragma unused help
        #pragma unused params
        if(!IsPlayerAdmin(playerid)) return SCM(playerid, COLOR_RED, "You need to be RCON admin to use this command!");
        ShowPlayerDialog(playerid,RCON_DIALOG,DIALOG_STYLE_LIST,"RCON support","Change server name\nChange Map name\nChange Web adress\nUnlock server\nLock server\nRestart\nChange pass\nTurn off","Choose","Exit");
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_ORG_INVITE:
        {
             if (response)
             {
                switch(P_Data[playerid][pMember])
                {
                    case 1:
                    {
                        SetPlayerSkin(playerid, 287);

                        SendClientMessage(playerid, C_WHITE, "Postali ste član "CRED"Američke vojske!");
                    }
                }
             }
             else
             {
                P_Data[playerid][pMember] = 0;
                P_Data[playerid][pRank] = 0;

                SendClientMessage(playerid, C_WHITE, "Odbili ste poziv za članstvo u Američkoj vojsci");
             }
        case DIALOG_REGISTER:
        {
            if(response)
            {
                 new
                    string[179],pFile[35];

                    format(pFile, 35, Player_File, GetName(playerid));

                 new
                    INI:UserFile = INI_Open(pFile);

                    INI_WriteInt(UserFile, "Password", udb_hash(inputtext));
                    INI_WriteInt(UserFile, "Admin", 0);
                    INI_WriteInt(UserFile, "Money", START_MONEY);
                    INI_WriteInt(UserFile, "Score", 0);
                    INI_WriteInt(UserFile, "Skin", SKIN_ID);
                    INI_WriteInt(UserFile, "Warn", 0);
                    INI_WriteInt(UserFile, "VIP", 0);

                    INI_Close(UserFile);

                    SetPVarInt(playerid, "Registered", 1);
                    SetPVarInt(playerid, "Logged", 1);
                    SpawnPlayer(playerid);

                    format(string, 125, ""COL_YELLOW"Ime: %s | Password: %s uspjeљno registrovano", GetName(playerid), inputtext);
                    SCM(playerid, 0x46BA29FF, string);
                    SpawnPlayer(playerid);
            }
            else Kick(playerid);
        }
Reply
#5

pawn Код:
//Find
                SetPlayerSkin(playerid, P_Data[playerid][pOrgskin])
            }
//Add missing semicolon
                SetPlayerSkin(playerid, P_Data[playerid][pOrgskin]);
            }

//Find
             }
        case DIALOG_REGISTER:
//Add missing bracket
             }
        }
        case DIALOG_REGISTER:
Reply
#6

Thanks . Lock ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)