GRRRRRRRR ZCMD wont work for me -.-
#1

hey i was trying to create a new filterscript but nope not gunna work for some wierd reason as zcmd is really not wanting to work okay so basically i have zcmd.inc so the first code ill give is gunna be

pawn Код:
#include <zcmd>
okay so thats included no errors untill :

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
CMD:setvip(playerid, params[])
{
    if(PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid) == 1)
    {
        new id, level;
        if(sscanf(params,"ui", id, level) return SendClientMessage(playerid, -1,"SYNTAX: /setvip [id] [leve]");
        {
            PlayerInfo[id][pVip] = level;
        }
    }
    else SendClientMessage(playerid, -1,"You are not an Admin!");
    return 1;
}
return 0;
}
that should be correct right ?! well no -.- i now get this;

pawn Код:
C:\Users\Admin\Desktop\SAMP\Fas FreeRoam\filterscripts\saving2.pwn(163) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\SAMP\Fas FreeRoam\filterscripts\saving2.pwn(163) : error 017: undefined symbol "cmd_setvip"
C:\Users\Admin\Desktop\SAMP\Fas FreeRoam\filterscripts\saving2.pwn(163) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\SAMP\Fas FreeRoam\filterscripts\saving2.pwn(163) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
its like zcmd isnt even included
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)