Help with teamchat threw frequencies
#3

pawn Код:
if(GetPVarInt(i, "TotalFreqientie")) == GetPVarInt(playerid, "TotalFreqientie"))
{
     SendClientMessage(i,COLOR_YELLOW,string);
}
Player radio frequency should be equal to the frequency of 'i' to chat? Do you want it like this?

Also, you don't set any value to the variable?
pawn Код:
stock GetPlayerFrequentie(playerid)
{
    new frq[20];
    format(frq, sizeof(frq), "%d.%d", FreqCount1[playerid],FreqCount2[playerid]);
    printf(frq);
    SetPVarInt(playerid, "TotalFrequientie", frq);
    return 1;
}
EDIT: I think, you can simply do return frq; without setting any variable in the stock and use it.
EDIT2: And you don't need to use the [playerid] tags with the variable when you are using PVars because they are already player variables.
Reply


Messages In This Thread
Help with teamchat threw frequencies - by AIped - 31.05.2014, 09:46
Re: Help with teamchat threw frequencies - by Threshold - 31.05.2014, 10:10
Re: Help with teamchat threw frequencies - by SyntaxQ - 31.05.2014, 10:13
Re: Help with teamchat threw frequencies - by AIped - 31.05.2014, 10:45
Re: Help with teamchat threw frequencies - by Zues - 31.05.2014, 16:26
Re: Help with teamchat threw frequencies - by AIped - 31.05.2014, 16:27
AW: Help with teamchat threw frequencies - by Nero_3D - 31.05.2014, 18:06
Re: Help with teamchat threw frequencies - by LowRyder - 31.05.2014, 18:56
Re: Help with teamchat threw frequencies - by AIped - 31.05.2014, 20:22
Re: Help with teamchat threw frequencies - by Threshold - 01.06.2014, 03:31

Forum Jump:


Users browsing this thread: 2 Guest(s)