30.11.2012, 19:35
i have problem on my script...when is payday it shows that you got pay but your bank account stay same ....
payday:
payday:
Код:
funkcija PayDay() { new Sati, Min, Sec, string[128], banka, placa; gettime(Sati, Min, Sec); format(string, sizeof(string), "Server: Sada je %i:00 sati", Sati); SetWorldTime(Sati); SendClientMessageToAll(-1, string); for(new i = 0; i < MAX_PLAYERS; i++) { banka = PlayerInfo[i][Banka]; placa = PlayerInfo[i][Level] * 1000; PlayerInfo[i][exp] ++; SendClientMessage(i, COLOR_WHITE, "|___ BANKOVNO IZVJESCE ___|"); format(string, sizeof(string), " Stanje: $%d", banka); SendClientMessage(i, Grey, string); format(string, sizeof(string), " Uplaceno: $%i",placa); SendClientMessage(i, Grey, string); SendClientMessage(i, Grey, "|--------------------------------------|"); format(string, sizeof(string), " Novo stanje: $%d", PlayerInfo[i][Banka]); SendClientMessage(i, Grey, string); SendClientMessage(i, Grey, "|--------------------------------------|"); if(PlayerInfo[i][exp] >= PlayerInfo[i][Level] * 4) { PlayerInfo[i][Level] ++; format(string, sizeof(string), "[LEVEL UP+++] Vas novi Level je: %d", PlayerInfo[i][Level]); SendClientMessage(i, COLOR_LIGHTBLUE, string); PlayerInfo[i][exp] = 0; } format(string, sizeof(string), "~y~PayDay~n~~w~Placa ~n~~g~$%d", placa); GameTextForPlayer(i, string, 5000, 1); } return 1; }