08.05.2011, 00:24
Hello, i wanted to check all my players coordinates with a timer and it doesn't work. I don't know what the problem might be. I get three warnings like this: warning 213: tag mismatch, where dini stuff is in timer. Here's the script:
OnFilterscriptInit:
And it doesn't put coordinates in the Dini, please help me.
OnFilterscriptInit:
Код:
SetTimer("ZaidejuKord", 5000, true);
Код:
forward zaidejukord(); public zaidejukord() { for(new i = 0; i < MAX_PLAYERS; i++) { new zaidejofailas[100], vardas[MAX_PLAYER_NAME]; new Float:x, Float:y, Float:z; GetPlayerName(i, vardas, sizeof(vardas)); format(zaidejofailas, sizeof(zaidejofailas), "FR/Saskaitos/%s.ini",vardas); GetPlayerPos(i, x, y, z); dini_IntSet(zaidejofailas, "afkX", x); // line of warning dini_IntSet(zaidejofailas, "afkY", y); // line of warning dini_IntSet(zaidejofailas, "afkZ", z); // line of warning } }