[FilterScript] EO_VIP system
#8

Please, post a pastebin link.
I'll check it.
EDIT:
Use switch instead of else if like:
PHP Code:
stock ErrorMessages(playeriderrorID)
{
    if(
errorID == 1
    if(
errorID == 2)  return SendClientMessage(playerid,RED,"ERROR: Player is not connected");
    if(
errorID == 3)  
    if(
errorID == 4)  
    if(
errorID == 5
    return 
1;

to
PHP Code:
ErrorMessages(playeriderrorID)
{
    switch(
errorID)
    {
        case 
: return SendClientMessage(playerid,RED,"ERROR: You are not a VIP");
        case 
: return SendClientMessage(playerid,RED,"ERROR: Player is not connected");
        case 
: return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 2 or above to use this command");
        case 
: return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 3 or above to use this command");
        case 
: return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 4 to use this command");
    }
    return 
1;

By the way, you don't need stock as a filterscript.
There is too many useless callback called there.
Reply


Messages In This Thread
[EO] VIP system v1.7 MySQL R41-2 (Stable version) - by Eoussama - 05.10.2016, 18:51
Re: EO_VIP system - by Eoussama - 05.10.2016, 19:29
Re: EO_VIP system - by Younes44 - 05.10.2016, 19:40
Re: EO_VIP system - by Eoussama - 05.10.2016, 20:53
Re: EO_VIP system - by UberEverywhere - 06.10.2016, 12:03
Re: EO_VIP system - by Eoussama - 06.10.2016, 13:37
Re: EO_VIP system - by Younes44 - 06.10.2016, 15:39
Re: EO_VIP system - by Dayrion - 07.10.2016, 00:38
Re: EO_VIP system - by Type-R - 07.10.2016, 00:56
Re: EO_VIP system - by Eoussama - 07.10.2016, 13:17
Re: EO_VIP system - by AndySedeyn - 07.10.2016, 13:35
Re: EO_VIP system - by Eoussama - 07.10.2016, 13:41
Re: EO_VIP system - by AndySedeyn - 07.10.2016, 13:52
Re: EO_VIP system - by Luicy. - 07.10.2016, 16:24
Re: EO_VIP system - by Eoussama - 08.10.2016, 10:50
Re: EO_VIP system - by Eoussama - 09.10.2016, 12:09
Re: EO_VIP system - by Pottus - 09.10.2016, 15:06
Re: EO_VIP system - by Eoussama - 09.10.2016, 18:47
Re: EO_VIP system - by Quinncell - 10.10.2016, 09:50
Re: EO_VIP system - by Slawiii - 10.10.2016, 10:05
Re: EO_VIP system - by Eoussama - 10.10.2016, 10:15
Re: EO_VIP system - by Logic_ - 10.10.2016, 10:31
Re: EO_VIP system - by Eoussama - 10.10.2016, 19:32
Re: EO_VIP system - by Eoussama - 11.10.2016, 12:07
Re: EO_VIP system - by Slawiii - 11.10.2016, 16:10
Re: EO_VIP system - by Eoussama - 11.10.2016, 17:28
Re: EO_VIP system - by Eoussama - 13.10.2016, 11:25
Re: EO_VIP system - by Eoussama - 16.10.2016, 09:02
Re: EO_VIP system - by Gotham - 16.10.2016, 10:22
Re: EO_VIP system - by Slawiii - 26.10.2016, 21:01
Re: EO_VIP system - by RyderX - 31.10.2016, 20:35
Re: EO_VIP system - by Eoussama - 30.01.2017, 13:06
Re: EO_VIP system - by Honey - 08.07.2017, 06:24
Re: EO_VIP system - by Eoussama - 08.07.2017, 14:13
Re: EO_VIP system - by Eoussama - 10.07.2017, 17:52
Re: EO_VIP system - by Eoussama - 13.07.2017, 12:30
Re: EO_VIP system - by Eoussama - 03.03.2018, 12:12
Re: EO_VIP system - by cuber - 03.03.2018, 12:20
Re: EO_VIP system - by Kaperstone - 03.03.2018, 12:22
Re: EO_VIP system - by Eoussama - 03.03.2018, 12:22

Forum Jump:


Users browsing this thread: 3 Guest(s)