szasztok
használni szeretném ezt az includet:
http://forum.sa-mp.com/showpost.php?p=1469352&postcount=1windows szerón teljesne jól mûködik de linuxon ennél a sornál crashel:
[pawn]new crypted = strfind(data, \"\\\"h\\\"\", true, -1);[/pawn]
a teljes funkcio:
[pawn]forward U2BStream(playerid, response_code, data[]);
public U2BStream(playerid, response_code, data[])
{
if(response_code == 200)
{
print(\"7\");
new result[33], u2bstr[33]; new streamedurl[128];
print(\"8\");
new crypted = strfind(data, \"\\\"h\\\"\", true, -1);
print(\"9\");
strmid(result,data,crypted+7,crypted+39,strlen(data));
print(\"10\");
format(u2bstr,sizeof(u2bstr), \"%s\", result);
print(\"11\");
format(streamedurl, sizeof(streamedurl), \"
http://www.youtube-mp3.org/get?video_id=%s&h=%s\",YoutubeID, u2bstr);
print(\"12\");
PlayAudioStreamForPlayer(playerid, streamedurl);
}
else
{
print(\"7\");
SendClientMessage(playerid, COLOR_RED, \"Hiba: {\"#FFFFFF\"}Rossz youtube link.\");
}
return 1;
}[/pawn]
szerintetek mi lehet a hiba?