26.04.2018, 11:13
I want to check if player is with admin level and give new value for Float:kof,
but i tested with message function and it gives a trash number..
but i tested with message function and it gives a trash number..
Код:
new Float:kof = 1; //new str[400]; if(playerDB[i][admin] == 5) kof == 2; if(playerDB[i][admin] == 4) kof == 2; if(playerDB[i][admin] == 3) kof == 1; if(playerDB[i][admin] == 2) kof == 0.7; if(playerDB[i][admin] == 1) kof == 0.4; if(playerDB[i][vip] == true) kof == 0.2; playerDB[i][VersloPelnas] += playerDB[i][VersloPajamos]; //format(str, sizeof(str), "Verslo koficijentas yra %d", kof); //SendClientMessage(i, RED, str );