31.05.2014, 10:13
(
Последний раз редактировалось SyntaxQ; 31.05.2014 в 10:24.
Причина: PVars problem
)
pawn Код:
if(GetPVarInt(i, "TotalFreqientie")) == GetPVarInt(playerid, "TotalFreqientie"))
{
SendClientMessage(i,COLOR_YELLOW,string);
}
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;
}
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.