[HELP] Problem with checking player coordinates
#1

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:
Код:
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
	}
}
And it doesn't put coordinates in the Dini, please help me.
Reply
#2

When you get coordinates you'll get them as a float value. So you need to write 'em as a float not as a int.
Use:
pawn Код:
Dini_FloatSet();
Reply
#3

When i put that i get an error error 017: undefined symbol "Dini_FloatSet". I dont know whats the problem, please help me.
Reply
#4

Ohh, sorry, I forgot you must use small initial letter, so it will be:
pawn Код:
dini_FloatSet()
Reply
#5

'ZaidejuKord' and 'zaidejukord' are not the same.
Reply
#6

Thank you!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)