Wysłany: 2012-01-18, 15:59
siemol
[MAX_PLAYERS];
Wiek: 29 Na forum: 5409 dni Posty: 23
Nick w MP: Gun
Piwa : 8
To tak pro?i?bym o zmienienie z zcmd [czarna magia , jak dla mnie] na strcmp
Pawn CMD : play ( playerid , params [])
{
new link [ 128 ];
if( sscanf ( params , s [ 128 ], link ))
return SendClientMessage ( playerid , 0x000000 , U ? yj : / play < link >);
for(new i = 0 ; i < MAX_PLAYERS ; i ++)
{
StopAudioStreamForPlayer ( i );
PlayAudioStreamForPlayer ( i , link );
}
return 1 ;
}
na strcmp , ja zrobilem to tak ale zle
Pawn if(! strcmp ( "/play" , cmdtext , true , 10 ))
{
new link [ 128 ];
if( sscanf ( params , s [ 128 ], link ))
for(new i = 0 ; i < MAX_PLAYERS ; i ++)
{
StopAudioStreamForPlayer ( i );
PlayAudioStreamForPlayer ( i , link );
}
return 1 ;
}
Ostatnio zmieniony przez siemol 2012-01-18, 16:07, w całości zmieniany 2 razy
Wysłany: 2012-01-20, 07:17
CRX
Wiek: 34 Na forum: 5671 dni Posty: 114
Piwa : 106
Pawn if(! strcmp ( "/play" , cmdtext , true , 5 ))
{
if( isnull ( cmdtext ))
retrun SendClientMessage ( playerid , "* Wpisz /muza (link)" );
foreach( Player , i )
{
StopAudioStreamForPlayer ( i );
PlayAudioStreamForPlayer ( i , cmdtext );
}
return 1 ;
Wymagane foreach oraz t? makrodefinicj? na g?r? "Mapy":
Pawn #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '') && (!(%1[1]))))
Wysłany: 2012-01-20, 14:27
DumpeR
Wiek: 30 Na forum: 5331 dni Posty: 171
Nick w MP: dumpeer
Piwa : 1026
"CRX" napisał/a : Pawn if(! strcmp ( "/play" , cmdtext , true , 5 ))
{
if( isnull ( cmdtext ))
retrun SendClientMessage ( playerid , "* Wpisz /muza (link)" );
foreach( Player , i )
{
StopAudioStreamForPlayer ( i );
PlayAudioStreamForPlayer ( i , cmdtext );
}
return 1 ;
Wymagane foreach oraz t? makrodefinicj? na g?r? "Mapy":
Pawn #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '') && (!(%1[1]))))
Raczej return.
Wysłany: 2012-01-21, 10:46
CRX
Wiek: 34 Na forum: 5671 dni Posty: 114
Piwa : 106
"DumpeR" napisał/a : "CRX" napisał/a : Pawn if(! strcmp ( "/play" , cmdtext , true , 5 ))
{
if( isnull ( cmdtext ))
retrun SendClientMessage ( playerid , "* Wpisz /muza (link)" );
foreach( Player , i )
{
StopAudioStreamForPlayer ( i );
PlayAudioStreamForPlayer ( i , cmdtext );
}
return 1 ;
Wymagane foreach oraz t? makrodefinicj? na g?r? "Mapy":
Pawn #define isnull(%1) ((!(%1[0])) || (((%1[0]) == '') && (!(%1[1]))))
Raczej return.
No chyba nie...
Tagi: audiostream :: zmiana.
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: