SA-MP Forums Archive
[HELP] Problem with checking player coordinates - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Problem with checking player coordinates (/showthread.php?tid=253786)



[HELP] Problem with checking player coordinates - Type-R - 08.05.2011

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.


Re: [HELP] Problem with checking player coordinates - xRyder - 08.05.2011

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();



Re: [HELP] Problem with checking player coordinates - Type-R - 08.05.2011

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


Re: [HELP] Problem with checking player coordinates - xRyder - 08.05.2011

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



Re: [HELP] Problem with checking player coordinates - MadeMan - 08.05.2011

'ZaidejuKord' and 'zaidejukord' are not the same.


Re: [HELP] Problem with checking player coordinates - Type-R - 08.05.2011

Thank you!!