17.05.2012, 09:56
Quote:
Looks like a braces problem. Make sure all your code is correctly indented. Especially all the code before the current problem functions.
|
Finally fixed those errors but i need that fuction so here's the end of OnDialogRespone public (the public before OnPlayerDisconnect)
PHP Code:
if(dialogid == DEIALOG_ID)
{
if(listitem == sizeof(radiolist)) return OnPlayerCommandText(playerid,"/radio");
if(listitem == sizeof(radiolist)+1) return StopAudioStreamForPlayer(playerid),Radio[playerid] = false;
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,radiolist[listitem][0]);
new str[50]; format(str,50,"Now listening to \"%s\"...",radiolist[listitem][1]);
SendClientMessage(playerid,0x33CCFFAA,str);
SendClientMessage(playerid,0xFFFFFFAA,"Stop listening: /MOFF");
Radio[playerid] = true;
return 1;
}
return 0;
}
And i have 2 warnings in something about /help command.
PHP Code:
(737) : warning 202: number of arguments does not match definition
PHP Code:
format(string,sizeof(string),"\t"lyellow2"Hey,%s! Welcome to the help page of Europe Deathmatch!\n\nWe have several jobs in our server:\n* Trucker \n"lblue"* Police \n"lorange"* Assistance \n"lgreen"* Driver \n",GetPlayerName(playerid));