Another problem occoured :(
#1

I don't know if its bad to post 3 threads within an hour, but here is my question. I just made my first filterscript ever, so i don't really get how it works yet with filterscripts. I have removed the // before #DEFINE_FILTERSCRIPT on the top of the script itself. I also defined a few colours. Here is what i have added to my script:
pawn Код:
public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_YELLOW, "FT Bot:"#COL_GREEN"Welcome to Fantasy RPG Trucking! We hope you have a great time!");
    SendClientMessage(playerid, COLOR_YELLOW, "FT Bot:"#COL_GREEN"Please read the /rules and /cmds before asking admins how to do it! Thanks!");
    return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    SendClientMessage(playerid, COLOR_YELLOW, "FT Bot:"#COL_GREEN"You have died!");
    return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/heal", cmdtext, true) == 0)
    {
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "You are not an Admin!");
        SetPlayerHealth(playerid,100);// heal the player
        SendClientMessage(playerid, COLOR_YELLOW, "FT Bot: "#COL_GREEN"You have been healed!");
        return 1;
    }
    return 0;
}
Those are the three things i edited in my script. When compiling i get no single error.
But as soon as i try to use /heal it won't work. I also discovered that none of the commands work, i use PPC_Trucking5 as gamemode, from PowerPc603.

I hope to get help with this issue
Reply


Messages In This Thread
Another problem occoured :( - by dahley5 - 31.08.2011, 03:23
Re: Another problem occoured :( - by Kar - 31.08.2011, 03:31
Re: Another problem occoured :( - by dahley5 - 31.08.2011, 03:36
Re: Another problem occoured :( - by WLSF - 31.08.2011, 03:42
Re: Another problem occoured :( - by dahley5 - 31.08.2011, 03:43
Re: Another problem occoured :( - by Kar - 31.08.2011, 03:50
Re: Another problem occoured :( - by dahley5 - 31.08.2011, 03:51
Re: Another problem occoured :( - by WLSF - 31.08.2011, 03:58
Re: Another problem occoured :( - by Kar - 31.08.2011, 04:11
Re: Another problem occoured :( - by dahley5 - 31.08.2011, 04:16

Forum Jump:


Users browsing this thread: