[Explicaciуn?] Include cp manager
#1

Alguien sabe como funciona este include

https://sampforum.blast.hk/showthread.php?tid=251483

Quisiera saber si me podrian ayudar a obtener la distancia de el jugador con relaciуn al checkpoint, hize algo tal que asн pero me saltaron estos errores:

Код:
C:\Users\JONATAN\Desktop\Outbreak Roleplay\filterscripts\foga.pwn(58) : error 029: invalid expression, assumed zero
C:\Users\JONATAN\Desktop\Outbreak Roleplay\filterscripts\foga.pwn(58) : warning 221: label name "Float" shadows tag name
C:\Users\JONATAN\Desktop\Outbreak Roleplay\filterscripts\foga.pwn(58) : error 017: undefined symbol "__x"
C:\Users\JONATAN\Desktop\Outbreak Roleplay\filterscripts\foga.pwn(58) : warning 221: label name "Float" shadows tag name
C:\Users\JONATAN\Desktop\Outbreak Roleplay\filterscripts\foga.pwn(58) : error 017: undefined symbol "__y"
C:\Users\JONATAN\Desktop\Outbreak Roleplay\filterscripts\foga.pwn(58) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
CMD:dis(playerid, params[])
{
	new Float: fDistance = GetPlayerCheckpointPos(playerid, &Float:__x, &Float:__y, &Float:__z),
  	szMessage[44];

	format(szMessage, sizeof(szMessage), "You're %0.2f meters away from the vending machine.", fDistance);
	SendClientMessage(playerid, 0xA9C4E4FF, szMessage);
	return 1;
}
Espero no sea mucha molestia
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)