Just VIP Commands Help!
#1

I am making a vip commands for my server so can you help me with it? the pawno code is this:
Код:
#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;
}
And The Errors
Код:
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.
PLS HELP ME
Reply
#2

Can you please show which line in your script is 35?
Reply
#3

Yes the line 35 is CreateMenu(~~Player,Warn,List~~,1,5,5,5)
Can you adjust the create menu width your self? the lines can be found by making a pawn new and pasting the whole code of pawn and then find it and exit pawn without saving very easy
Reply
#4

Quote:
Originally Posted by ZombieNest
Посмотреть сообщение
Yes the line 35 is CreateMenu(~~Player,Warn,List~~,1,5,5,5)
Can you adjust the create menu width your self? the lines can be found by making a pawn new and pasting the whole code of pawn and then find it and exit pawn without saving very easy
Код:
CreateMenu(~~Player,Warn,List~~,1,5,5,5);
Reply
#5

what do you wanna say?
Reply
#6

Replace your CreateMenu line with the one he gave you, It should work.

EDIT: This should help you to recreate your syntax. https://sampwiki.blast.hk/wiki/CreateMenu
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)