shape1
shape2
shape3
shape4
shape7
shape8

Как исправить ошибку?


BIGSKY

Новичок
Пользователь
29.03.2017
0
0
0
Приветствую форумчане! 

Столкнулся с проблемкой и уже который час не могу решить..

if(!ProetectorS(6.0, playerid, giveplayerid)) return true;

Ошибки:

(4044):  error 012: invalid function call, not a valid address

(4044):  warning 215: expression has no effect

(4044):  error 029: invalid expression, assumed zero

(4044):  warning 215: expression has no effect

(4044) : error 001: expected token: ";", but found "]"

(4044) : fatal error 107: too many error messages on one line

 

Manowar

Освоившийся
Пользователь
13.05.2014
217
1
30
0
28
Добавь в конец мода:

Код:
forward ProetectorS(Float:radi, playerid, targetid);
public ProetectorS(Float:radi, playerid, targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
	{
		new Float:posx, Float:posy, Float:posz;
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		//radi = 2.0; //Trigger Radius
		GetPlayerPos(targetid, posx, posy, posz);
		tempposx = (oldposx -posx);
		tempposy = (oldposy -posy);
		tempposz = (oldposz -posz);
		//printf("DEBUG: X:%f Y:%f Z:%f",posx,posy,posz);
		if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
		{
			return 1;
		}
	}
	return 0;
}