07.10.2016, 00:38
Please, post a pastebin link.
I'll check it.
EDIT:
Use switch instead of else if like:
to
By the way, you don't need stock as a filterscript.
There is too many useless callback called there.
I'll check it.
EDIT:
Use switch instead of else if like:
PHP Code:
stock ErrorMessages(playerid, errorID)
{
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;
}
PHP Code:
ErrorMessages(playerid, errorID)
{
switch(errorID)
{
case 1 : return SendClientMessage(playerid,RED,"ERROR: You are not a VIP");
case 2 : return SendClientMessage(playerid,RED,"ERROR: Player is not connected");
case 3 : return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 2 or above to use this command");
case 4 : return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 3 or above to use this command");
case 5 : return SendClientMessage(playerid,RED,"ERROR: You need to be VIP level 4 to use this command");
}
return 1;
}
There is too many useless callback called there.