03.02.2016, 11:14
I have this public:
And like you see, if PlayerInfo[i][pPayDay] < 5 it will return for that player.
And problem is in that line. When payday come, if playerid 0 have PlayerInfo[0][pPayDay] < 5, next player who is id 1 won't get anything(he had PlayerInfo[1][pPayDay] > 5, but he dont receive any message)
What is problem? Do this line return for all players or what is problem??
And i create command for that public:
And when it return "*Niste igrali dovoljno dugo da bi dobili platu.", i dont receive this message "Payday started!" from command!
Код:
forward Plata();
public Plata()
{
new payday[830];
foreach(Player, i)
{
if(gPlayerLogged[i] == 1)
{
if(PlayerInfo[i][pPayDay] < 5) return SCM(i, -1, "*Niste igrali dovoljno dugo da bi dobili platu.");
SCM(i, -1, "You get money!");
code code code...
}
}
return true;
}
And problem is in that line. When payday come, if playerid 0 have PlayerInfo[0][pPayDay] < 5, next player who is id 1 won't get anything(he had PlayerInfo[1][pPayDay] > 5, but he dont receive any message)
What is problem? Do this line return for all players or what is problem??
And i create command for that public:
Код:
YCMD:pokreniplatu(playerid, params[], help)
{
Plata();
SCM(playerid, COLOR_WHITE, "Payday started!");
return 1;
}


