Undefined symbol "playerid" .. :L
#1

pawn Код:
public tunetimer()
{
    PlayerPlaySound(playerid,1062,-3359.1,3008.2,1.7);
}
and i get a error, i have all the other neccasery things too:

pawn Код:
forward tunetimer();

and

SetTimer("tunetimer",5000,false);
and i have the a_samp included too...
Reply
#2

try this :

Quote:

public tunetimer()
{
PlayerPlaySound(1062,-3359.1,3008.2,1.7);
}

if it dosnt work tell me
Reply
#3

Quote:
Originally Posted by FireCat
Посмотреть сообщение
try this :



if it dosnt work tell me
i get warnings, but thats about it
Reply
#4

FIXED FIXED FIXED
Reply
#5

pawn Код:
public tunetimer(playerid)
{
    PlayerPlaySound(playerid,1062,-3359.1,3008.2,1.7);
}


pawn Код:
forward tunetimer(playerid);

and

SetTimer("tunetimer",5000,false);
there
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)