PD Question.
#6

Errors:
All of them are on line 18:
1. undefined symbol "PlayerInfo"
2. expression has no effect
3. unexpected token ";", but found "]"
4. invalid expression, assumed zero
5. fatar error 107: too many error messages on one line.

Script:
Код:
#include <a_samp>
#define dgate_1 1
#define ownermsg1 2
new gate;
public OnFilterScriptInit()
{
    gate = CreateObject(976,-2275.8000488281, 2348.8000488281, 3.7999999523163, 0.0, 0.0, 56);
    //Add this on the top of the scrip below the defines
    // new gate;
    //then add
    // gate = your object
} //

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/gateopen", cmdtext, true, 10) == 0)
    {
        if(PlayerInfo[playerid][pMember] == 6)
        {
            ShowPlayerDialog(playerid, dgate_1, DIALOG_STYLE_LIST, "Dialog Gate Options", "Open Gate \nClose Gate \nHouse Owner \n Teleport", "          Choose Option       ", "");
            return 1;
        }
        else return SendClientMessage(playerid, FFFFFF, "You are not a PD Officer!");
    }
    return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid==dgate_1)
{
        if(response)
        {
            if(listitem == 0)//Open Gate

            {
                MoveObject(gate,-2275.8000488281, 2348.8000488281, 0.3999999523163 ,0.50);
            }
            if(listitem == 1)//Close Gate
            {
                MoveObject(gate,-2275.8000488281, 2348.8000488281, 3.7999999523163,0.50);
            }
            if(listitem == 2) //Owner Info Opention
            {
                ShowPlayerDialog(playerid, ownermsg1, DIALOG_STYLE_MSGBOX, "Notice", "Name: \n Job: \n Staff Member:", "Okay", "Then");
            }
            if(listitem == 3)//Teleport Option
            {
                SetPlayerInterior (playerid, 0);
                SetPlayerPos(playerid, 1497.2285, -707.8083, 98.0334 );
            }

        }
        return 1;
    }
return 0;
}
Line 18 is red colored.
Reply


Messages In This Thread
PD Question. - by PhoeNiX778 - 13.07.2012, 12:51
Re: PD Question. - by PhoeNiX778 - 13.07.2012, 14:18
Re: PD Question. - by Dan. - 13.07.2012, 14:21
Re: PD Question. - by PhoeNiX778 - 13.07.2012, 14:27
Re: PD Question. - by Dan. - 13.07.2012, 14:30
Re: PD Question. - by PhoeNiX778 - 13.07.2012, 14:46
Re: PD Question. - by clarencecuzz - 13.07.2012, 14:49
Re: PD Question. - by PhoeNiX778 - 13.07.2012, 15:09
Re: PD Question. - by PhoeNiX778 - 13.07.2012, 15:22
Re: PD Question. - by PhoeNiX778 - 13.07.2012, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)