22.04.2018, 14:30
Here's my code:
When I compile it it all works correctly and as I wanted it to, but I get these warnings:
warning 204: symbol is assigned a value that is never used: "Vrijeme"
warning 204: symbol is assigned a value that is never used: "Datum"
I know why I get them and what they mean, and I know that I can just type in like "printf("%d %d", Datum, Vrijeme);" but I want to know what can I change in my code so that i don't have to do it that way.
Any help is appreciated.
PHP код:
new File:ftw=fopen("server/komande.txt", io_append), string[100], name[MAX_PLAYER_NAME], Year, Month, Day, Datum, Hour, Minute, Second, Vrijeme;
Datum = getdate(Year, Month, Day);
Vrijeme = gettime(Hour, Minute, Second);
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s: %s | %d/%d/%d | %dh:%dm:%ds\r\n", name, cmdtext, Day, Month, Year, Hour, Minute, Second);
fwrite(ftw, string);
fclose(ftw);
warning 204: symbol is assigned a value that is never used: "Vrijeme"
warning 204: symbol is assigned a value that is never used: "Datum"
I know why I get them and what they mean, and I know that I can just type in like "printf("%d %d", Datum, Vrijeme);" but I want to know what can I change in my code so that i don't have to do it that way.
Any help is appreciated.