public OnPlayerExitVehicle(playerid, vehicleid)
for(new i; i<MAX_PLAYERS; i++)
{
StopAudioStreamForPlayer(i);
}
}
return 1;
}
2 errors:
error 054: unmatched closing brace ("}")
error 010: invalid function or declaration
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i; i<MAX_PLAYERS; i++)
{
StopAudioStreamForPlayer(i);
}
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
for(new i; i<MAX_PLAYERS; i++)
{
StopAudioStreamForPlayer(i);
}
return 1;
}
public OnPlayerExitVehicle( playerid, vehicleid )
{
StopAudioStreamForPlayer( playerid );
return 1;
}
try
pawn Код:
|
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerNPC(playerid)) return 1;
if(GetPlayerInterior(playerid) == 0) {
if(IsPlayerInRangeOfPoint(playerid,70.0,1300.4093,-1868.7646,17.4449)) {
if(!GetPVarInt(playerid,"alhambra")) {
SetPVarInt(playerid,"alhambra",0);
PlayAudioStreamForPlayer(playerid, "http://live.radioplayone.ro:9888/",1300.4093,-1868.7646,17.4449,70.0,true);
}
}
}
else {
if(GetPVarInt(playerid,"alhambra")) {
DeletePVar(playerid,"alhambra");
StopAudioStreamForPlayer(playerid);
}
}
return 1;
}
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerNPC(playerid)) return 1;
new isnear;
if(GetPlayerInterior(playerid) == 0 && isnear == 0)
{
if(IsPlayerInRangeOfPoint(playerid,70.0,1300.4093,-1868.7646,17.4449))
{
if(!GetPVarInt(playerid,"alhambra"))
{
SetPVarInt(playerid,"alhambra",0);
isnear = 1;
PlayAudioStreamForPlayer(playerid, "http://live.radioplayone.ro:9888/",1300.4093,-1868.7646,17.4449,70.0,true);
}
}
}
else
{
if(GetPVarInt(playerid,"alhambra"))
{
DeletePVar(playerid,"alhambra");
StopAudioStreamForPlayer(playerid);
isnear = 0;
}
}
return 1;
}
I can't see why you're using a loop when playerid is already defined as a parameter on a public;
pawn Код:
|