[HELP]Warnings
#1

Hi im creating a /stuck command and i get this when compiling
Код:
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(710) : warning 213: tag mismatch
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(710) : warning 213: tag mismatch
C:\Users\Windows Vista\sampserver\gamemodes\Cranked.pwn(710) : warning 213: tag mismatch
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
that line (710) is
Код:
		GetPlayerPos(playerid, stuckx, stucky, stuckz);
and the whole command is
Код:
	if(strcmp(cmdtext, "/stuck", true) == 0)
	{
		new stuckx, stucky, stuckz;
		GetPlayerPos(playerid, stuckx, stucky, stuckz);
		SetPlayerPos(playerid, stuckx, stucky, stuckz+5);
		TogglePlayerControllable(playerid, 1);
  	return 1;
	}
anyone know why this is happening?
Reply
#2

new stuckx, stucky, stuckz;

should be :

new Floattuckx;
new Floattucky;
new Floattuckz;


Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)