08.07.2014, 17:36
(
Последний раз редактировалось K9IsGodly; 09.07.2014 в 03:03.
)
I am getting An Error has occurred: 6 for these commands when I use them in game. They compile fine and all so I don't see what this means. Was hoping you could help.
Код:
CMD:playsong(playerid, params[]) { new ylink[50]; if(sscanf(params,"s[50]",ylink)) return SendClientMessage(playerid, -1, "/playsong [******* URL]"); if(strlen(ylink) > 50) return SendClientMessage(playerid, -1, "That link is too long!"); Play*******VideoForPlayer(playerid,ylink); return 1; } CMD:adminsong(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 6) { new ylink[50]; if(sscanf(params,"s[50]",ylink)) return SendClientMessage(playerid, -1, "/adminsong [******* URL]"); if(strlen(ylink) > 50) return SendClientMessage(playerid, -1, "That link is too long!"); for(new i = 0; i != MAX_PLAYERS; ++i) { if(IsPlayerConnected(i)) { Play*******VideoForPlayer(i,ylink); } return 1; } else { SendClientMessage(playerid, -1, "You are not a high enough level administrator to use this command!"); } return 1; }