Ayuda con unos Warings
#1

Hola, bueno tengo un problema en una parte de un comando, estoy recien empezando a scriptear y me rompi un poco la cabeza para hacer esto pero bueno, no pude solucionarlo hice de todo pero no pude. Si me podrнan ayudar se los agradecerнa.

(710) : warning 202: number of arguments does not match definition
(711) : warning 202: number of arguments does not match definition
(712) : warning 202: number of arguments does not match definition
(712) : warning 202: number of arguments does not match definition
(712) : warning 202: number of arguments does not match definition
(703) : warning 203: symbol is never used: "vw"
(703) : warning 203: symbol is never used: "inter"

La linea 710 es GetPlayerVirtualWorld
La linea 711 es GetPlayerInterior
La linea 712 es el SPP

Код:
CMD:ir(playerid, params[])
{
	new id, inter, vw;
	if(Jugador[playerid][pAdmin] >= 2) return NoAutorizado
	if(sscanf(params, "u", id)) return SCM(playerid, COLOR_GREY, "Parбmetros: /ir [playerid]");
	if(JugadorConectado(id)) return NoConectado
	{
	        new Float:posX, Float:posY, Float:posZ;
		GetPlayerPos(id, posX, posY, posZ);
		GetPlayerVirtualWorld(id, vw);
		GetPlayerInterior(id, inter);
		SPP(playerid, posX, posY, posZ, 0, inter, vw);
		SCM(playerid, COLOR_ORANGE, "Te has teleportado exitosamente.");
	}
	return 1;
}
Reply
#2

NoAutorizado y NoConectado no tendria que ir algo mбs o menos asн

pawn Код:
return NoConectado(playerid);

return NoAutorizado(playerid,level);
digo porque yo tmb lo tengo asн..
Reply
#3

Quote:
Originally Posted by !R1Ch@rD!
Посмотреть сообщение
NoAutorizado y NoConectado no tendria que ir algo mбs o menos asн

pawn Код:
return NoConectado(playerid);

return NoAutorizado(playerid,level);
digo porque yo tmb lo tengo asн..
Mmm, probй pero sigue igual, voy a intentar cambiando parte del cуdigo. Gracias igual.
Reply
#4

Estбs utilizando mal la funciуn GetPlayerVirtualWorld, ya que solo acepta 1 parametro que es la id del jugador, si quieres guardarlo como una variable tienes que poner

Код:
VW = GetPlayerVirtualWorld(id);
Intenta usar

Код:
SPP(playerid, posX, posY, posZ, 0, GetPlayerInterior(id), GetPlayerVirtualWorld(id));
NOTA: Tambiйn es mбs eficiente que utilizes un array para las posiciones en vez de crear una variable para cada posiciуn, ejemplo:

Код:
new Float:pos[3] donde pos[0] = X, pos[1] = Y y pos[3] = Z
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)