11.10.2011, 00:44
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
okay so thats included no errors untill :
that should be correct right ?! well no -.- i now get this;
its like zcmd isnt even included
pawn Код:
#include <zcmd>
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;
}
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.