20.10.2013, 10:17
I am making a vip commands for my server so can you help me with it? the pawno code is this:
And The Errors
PLS HELP ME
Код:
#define FILTERSCRIPT #include <a_samp> #include <sscanf2> #include <zcmd> public OnFilterScriptInit() { return 1; } public OnPlayerSpawn(playerid) { SendClientMessage(playerid, 0x00FF00AA, "View Server Updates By Using /serverupdates ."); return 1; } CMD:vipkick(playerid, params[]) { new id; if(sscanf(params, "r", id)) return SendClientMessage(playerid, -1, "Usage: /vipkick <ID/Part Of Name>"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid player"); SendClientMessage(playerid,0xAA333AA, "(Player Has Been Kicked"); Kick(id); return 1; } CMD:vipwarn(playerid, params[]) { new id; if(sscanf(params, "r", id)) return SendClientMessage(playerid, -1, "Usage: /vipwarn <ID/Part Of Name>"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid player"); SendClientMessage(id,0xAA333AA, "You Have Been VIP Warned"); CreateMenu(~~Player,Warn,List~~,1,5,5,5) AddMenuItem(1,1,Player Have 1/10 Vip Warns) // if player have been warned again and again increase the vip warns~~ SendClientMessage(playerid,0xAA333AA, "Player Has Been Warned"); return 1; } CMD:vipwarns(playerid, params[]) { new id; if(sscanf(params, "r", id)) return SendClientMessage(playerid, -1, "Usage: /vipwarns <ID/Part Of Name>"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1, "Invalid player"); SendClientMessage(id,0xAA333AA, "A VIP Has Run A Warn List Of Your Account"); SendClientMessage(playerid,0xAA333AA, "Player Warns List Found"); ShowMenuForPlayer(1,playerid) //Show the vip warns of player ids return 1; }
Код:
C:\Users\Mateen\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : error 017: undefined symbol "Player" C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : error 029: invalid expression, assumed zero C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : warning 215: expression has no effect C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : warning 215: expression has no effect C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : warning 215: expression has no effect C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : warning 215: expression has no effect C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : error 001: expected token: ";", but found ")" C:\Users\Alee\Desktop\ARP\filterscripts\VIPCOMMANDS.pwn.txt(35) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.