SA-MP Forums Archive
Just VIP Commands Help! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Just VIP Commands Help! (/showthread.php?tid=470909)



Just VIP Commands Help! - ZombieNest - 20.10.2013

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


Re: Just VIP Commands Help! - kbalor - 20.10.2013

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


Re: Just VIP Commands Help! - ZombieNest - 20.10.2013

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


Re: Just VIP Commands Help! - kbalor - 20.10.2013

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);



Re: Just VIP Commands Help! - ZombieNest - 21.10.2013

what do you wanna say?


Re: Just VIP Commands Help! - -CaRRoT - 21.10.2013

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