A problem in OnPlayerDisconnect
#14

Quote:
Originally Posted by Y_Less
View Post
Looks like a braces problem. Make sure all your code is correctly indented. Especially all the code before the current problem functions.
I love you man!
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;

What's the problem here? (It's not the whole OnPlayerResponeDialog.
And i have 2 warnings in something about /help command.
PHP Code:
(737) : warning 202number 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)); 
Thanks!!!
Reply


Messages In This Thread
A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 07:39
Re: A problem in OnPlayerDisconnect - by iRage - 17.05.2012, 07:49
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:14
Re: A problem in OnPlayerDisconnect - by $$Killer$$ - 17.05.2012, 08:18
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:21
Re: A problem in OnPlayerDisconnect - by $$Killer$$ - 17.05.2012, 08:35
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:43
Re: A problem in OnPlayerDisconnect - by Kitten - 17.05.2012, 08:46
Re: A problem in OnPlayerDisconnect - by $$inSane - 17.05.2012, 08:48
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 08:48
Re: A problem in OnPlayerDisconnect - by Kitten - 17.05.2012, 08:52
Re: A problem in OnPlayerDisconnect - by $$inSane - 17.05.2012, 09:06
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 09:42
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 09:56
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 10:58
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:05
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:21
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 11:39
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 12:08
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 13:43
Re: A problem in OnPlayerDisconnect - by Firo - 17.05.2012, 17:29

Forum Jump:


Users browsing this thread: 2 Guest(s)