y_commands error 017
#1

pawn Код:
YCMD:kill(playerid, params[], help)
{
    if (help)
    {
        SendClientMessage(playerid, Grey, "Kill yourself.");
    }
    else
    {
        SetPlayerHealth(playerid, 0.0);
    }
    return 1;
}
EDIT: Put the wrong command in


error 017: undefined symbol "@yC_kill"

Don't tell me to use ZCMD, thank you.
Reply
#2

The command is at the bottom of my script along with the other commands, it's just that one that returns that error.
Reply
#3

pawn Код:
#include <YSI\y_commands>

YCMD:kill(playerid, params[], help)
{
    if(help) {
        SendClientMessage(playerid, Grey, "Kill yourself.");
    }
    else
    {
        SetPlayerHealth(playerid, 0.0);
    }
    return 1;
}

\gamemodes\Untitled.pwn(360) : error 017: undefined symbol "@yC_kill"
\gamemodes\Untitled.pwn(360) : error 017: undefined symbol "@yC_kill"
EDIT
Reply
#4

I had a missing bracket.. My bad.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)