uundefined symbol "CMDMessageToVips"
#1

error undefined symbol "CMDMessageToVips " have solution help

[code]
cmd(vsetarmour,playerid,params[]) {
if(PlayerInfo[playerid][Vip] >= 3) {
new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
if(isnull(tmp) || isnull(tmp2) || !IsNumeric(tmp2)) return SendClientMessage(playerid, red, "USAGE: /vsetarmour [playerid] [amount]");
if(strval(tmp2) < 0 || strval(tmp2) > 100 && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid, red, "ERROR: Invaild health amount");
new player1 = strval(tmp), armour = strval(tmp2), string[128];
if(PlayerInfo[player1][Level] == ServerInfo[MaxAdminLevel] && PlayerInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {
CMDMessageToVips(playerid,"vsetarmour");
format(string, sizeof(string), "You have set \"%s's\" armour to '%d", pName(player1), armour); SendClientMessage(playerid,blue,string);
if(player1 != playerid) { format(string,sizeof(string),"Vip \"%s\" has set your armour to '%d'", pName(playerid), armour); SendClientMessage(player1,blue,string); }
return SetPlayerArmour(player1, armour);
} else return SendClientMessage(playerid,red,"ERROR: Player is not connected");
} else return ShowPlayerDialog(playerid, 199, DIALOG_STYLE_MSGBOX, "{FF0000}INFO: No Tienes level para este Comando", "\n{FF0000}ERROR: {FFFFFF}You need to be Vip level 3 to use this command\n\n{FF0000}ERROR: {FFFFFF}Tienes que ser Vip level 3 para usar este comando", "Aceptar", "");
}
/code
Reply
#2

First of all, make sure when you post some code that it appears in the brackets properly and is easy to read.

Second of all, to me it seems that:

Код:
CMDMessageToVips(playerid,"vsetarmour");
Is a function. If so, can you provide the actual function for us?
Reply
#3

Quote:
Originally Posted by Type-R
Посмотреть сообщение
First of all, make sure when you post some code that it appears in the brackets properly and is easy to read.

Second of all, to me it seems that:

Код:
CMDMessageToVips(playerid,"vsetarmour");
Is a function. If so, can you provide the actual function for us?
thanks bro fix my scrip closet
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)