16.07.2011, 18:40
pawn Код:
warning 209: function "OnPlayerUpdate" should return a value
pawn Код:
public OnPlayerUpdate(playerid)
{
if( PlayerInfo[playerid][Invisible] == 1)
return 0;
}
warning 209: function "OnPlayerUpdate" should return a value
public OnPlayerUpdate(playerid)
{
if( PlayerInfo[playerid][Invisible] == 1)
return 0;
}
public OnPlayerUpdate(playerid)
{
{
if( PlayerInfo[playerid][Invisible] == 1)
{
SendClientMessage(playerid, COLOUR_WHITE, "Inv" );
}
}
return 0;
}
public OnPlayerUpdate(playerid) { { if( PlayerInfo[playerid][Invisible] == 1) { SendClientMessage(playerid, COLOUR_WHITE, "Inv" ); return 1; } } return 1; }
public OnPlayerUpdate(playerid)
{
if ( PlayerInfo[playerid][Invisible] == 1 )
{
// Stuff in here
}
return 0;
}
...so I can become "Invisible" to other players... |
public OnPlayerUpdate(playerid)
{
PlayerInfo[playerid][Invisible] = 1;
return 0;
}
public OnPlayerUpdate(playerid) { if(PlayerInfo[playerid][Invisible]==1) { GameTextForPlayer(playerid,"~l~inv",100,4); return 0; } return 1; }