/URLMusic
#1

if(dialogid == 439){
if(!response)return 1;
if(strlen(inputtext))
{
SendClientMessageToAll(-1, MUSstr);
for ( new i, j = GetMaxPlayers( ) ; i < j ; ++ i)
{
format(MUSstr,sizeof(MUSstr),"%s",inputtext);
PlayAudioStreamForPlayer(i,MUSstr);
}
}
}
return 1;
}

The pawn is crashing and i don't know why
Help
Reply
#2

Quote:
Originally Posted by Ejecter
Посмотреть сообщение
if(dialogid == 439){
if(!response)return 1;
if(strlen(inputtext))
{
SendClientMessageToAll(-1, MUSstr);
for ( new i, j = GetMaxPlayers( ) ; i < j ; ++ i)
{
format(MUSstr,sizeof(MUSstr),"%s",inputtext);
PlayAudioStreamForPlayer(i,MUSstr);
}
}
}
return 1;
}

The pawn is crashing and i don't know why
Help
one closing bracket too much:
pawn Код:
if(dialogid == 439)
{
    if(!response) return 1;
    if(strlen(inputtext))
    {
        SendClientMessageToAll(-1, MUSstr);
        for ( new i, j = GetMaxPlayers( ) ; i < j ; ++ i)
        {
            format(MUSstr,sizeof(MUSstr),"%s",inputtext);
            PlayAudioStreamForPlayer(i,MUSstr);
        }
    }
    }//this one, just remove that
    return 1;
}
Reply
#3

You should indent properly and these mishaps would probably not occur!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)