Undefined symbol "playerid" .. :L
#6



(Favorite: )
pawn Код:
public
    OnGameModeInit()
{
    SetTimer("tunetimer", 5000, true);
    return 1;
}

forward
    tunetimer();
public
    tunetimer()
{
//  for(new i, g_m = GetMaxPlayers(); i < g_m; i++) if(IsPlayerConnected(i))
    foreach(Player, i)
    {
        PlayerPlaySound(i, 1062, 0.0, 0.0, 0.0);
    }
    return 1;
}
Or:
(Alternative: )
pawn Код:
public
    OnPlayerConnect(playerid)
{
    SetPVarInt(playerid, "KillTimer", SetTimerEx("tunetimer", 5000, true, "d", playerid));
    return true;
}

public
    OnPlayerDisconnect(playerid)
{
    KillTimer(GetPVarInt(playerid, "KillTimer"));
    return true;
}

forward
    tunetimer(playerid);
public
    tunetimer(playerid)
{
    PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);
    return 1;
}
Reply


Messages In This Thread
Undefined symbol "playerid" .. :L - by WillyP - 29.07.2010, 18:15
Re: Undefined symbol "playerid" .. :L - by FireCat - 29.07.2010, 18:18
Re: Undefined symbol "playerid" .. :L - by WillyP - 29.07.2010, 18:21
Re: Undefined symbol "playerid" .. :L - by WillyP - 29.07.2010, 18:23
Re: Undefined symbol "playerid" .. :L - by Code_Red - 29.07.2010, 18:51
Re: Undefined symbol "playerid" .. :L - by smeti - 29.07.2010, 19:15

Forum Jump:


Users browsing this thread: 5 Guest(s)