Čaute mám výplatu zrobenú zatiaľ na test mám timer nastavený na 10s ale keď sa pripojím na server a mám zamestnanie napr 7 tak mi za tých 10s nič nepríde ani správa nič...
Skúšal som aj iný timer čo iba odošle spŕavu ani ten nefungoval
forward Vyplaty(); ///hore v mode
public Vyplaty() /////////////// public nad OnFilterscipt
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pJob] == 0)
{
GivePlayerMoney(i, 3563);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Obdržal si podporu pre nezamestnaných 3 563$.");
}
else if(PlayerInfo[playerid][pJob]==1)
{
GivePlayerMoney(i, 7864);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 7 864$.");
}
else if(PlayerInfo[playerid][pJob] == 2)
{
GivePlayerMoney(i, 7480);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 7 480$.");
}
else if(PlayerInfo[playerid][pJob] == 3)
{
GivePlayerMoney(i, 7503);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 7 503$.");
}
else if(PlayerInfo[playerid][pJob] == 4)
{
GivePlayerMoney(i, 5320);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 5 320$.");
}
else if(PlayerInfo[playerid][pJob] == 5)
{
GivePlayerMoney(i, 4830);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 4830$.");
}
else if(PlayerInfo[playerid][pJob] == 6)
{
GivePlayerMoney(i, 8450);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ] Prišla ti výplata 8450$.");
}
else if(PlayerInfo[playerid][pJob] == 7)
{
GivePlayerMoney(i, 4956);
SendClientMessage(i, COLOR_BLUE, "[ -- JOBS -- ]Prišla ti výplata 4956$.");
}
}
return 1;
}
SetTimer("Vyplaty",10000,true); //timer na začiatku v gamemodeinit
Dotaz
Ucker 0
Čaute mám výplatu zrobenú zatiaľ na test mám timer nastavený na 10s ale keď sa pripojím na server a mám zamestnanie napr 7 tak mi za tých 10s nič nepríde ani správa nič...
Skúšal som aj iný timer čo iba odošle spŕavu ani ten nefungoval
forward Vyplaty(); ///hore v mode
Link to comment
Share on other sites
8 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now