25.12.2012, 18:11
pawn Код:
C:\Users\Public\Videos\Sample Videos\pawno\troll.pwn(43) : error 010: invalid function or declaration
C:\Users\Public\Videos\Sample Videos\pawno\troll.pwn(47) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext,"/troll",true)==0)
{
if(IsPlayerAdmin(playerid))
{
new string[128];
new adminname[MAX_PLAYER_NAME];
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
{
PlayAudioStreamForPlayer(i, "https://soundcloud.com/bigred9921/u-mad-bro-song-by-teamheadkick/download");
GetPlayerName(playerid, adminname, sizeof(adminname));
format(string, sizeof(string), "[TROLL]RCON Administrator %s(ID:%d) has trolled you! Type /stopmusic if you don't like the music!", adminname, adminname);
}
}
}
}
}
if(strcmp(cmdtext,"/stopmusic",true)==0)
{
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, awesome_blue, "Troll music stopped!);
return 1;
}
}
}