array is too small [Problem]
#2

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    
// IRC
    
new leaveMsg[128], name[MAX_PLAYER_NAME], reasonMsg[8];
    switch(
reason)
    {
        case 
0reasonMsg "Timeout/Crashed";
        case 
1reasonMsg "Leaving";
        case 
2reasonMsg "Kicked/Banned";
    } 
Your reasonMsg's array size is too small - 8.

Replace your code with this -

PHP код:
public OnPlayerDisconnect(playeridreason)
{
    
// IRC
    
new leaveMsg[128], name[MAX_PLAYER_NAME], reasonMsg[15];
    switch(
reason)
    {
        case 
0reasonMsg "Timeout/Crashed";
        case 
1reasonMsg "Leaving";
        case 
2reasonMsg "Kicked/Banned";
    } 
Reply


Messages In This Thread
array is too small [Problem] - by Team_PRO - 02.06.2014, 05:08
Re: array is too small [Problem] - by Adityz - 02.06.2014, 05:11
Re: array is too small [Problem] - by Naresh - 02.06.2014, 05:19
Re: array is too small [Problem] - by Team_PRO - 02.06.2014, 05:45

Forum Jump:


Users browsing this thread: 1 Guest(s)