Invalid expression help
#1

PHP код:
Copy.pwn(4968) : error 029invalid expressionassumed zero
Copy
.pwn(4968) : error 029invalid expressionassumed zero
Copy
.pwn(4968) : warning 221label name "Float" shadows tag name
Copy
.pwn(4968) : error 029invalid expressionassumed zero
Copy
.pwn(4968) : fatal error 107too many error messages on one line 
Код:
public PlayerToPoint(Float:range, playerid, Float:x, Float:y, Float:z)

    if(IsPlayerConnected(playerid) )
	{
		new Float:oldposx, Float:oldposy, Float:oldposz;
		new Float:tempposx, Float:tempposy, Float:tempposz;
		GetPlayerPos(playerid, oldposx, oldposy, oldposz);
		tempposx = (oldposx -x);
		tempposy = (oldposy -y);
		tempposz = (oldposz -z);
		if (((tempposx < range) && (tempposx > -range)) && ((tempposy < range) && (tempposy > -range)) && ((tempposz < range) && (tempposz > -range)))
	    return 1;
}
Reply
#2

What line is 4968 in your code?
Reply
#3

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
What line is 4968 in your code?
public PlayerToPoint(Float:range, playerid, Float, Float:y, Float:z)
Reply
#4

try it might work dante said you needed help
Код:
public PlayerToPoint(Float:range, playerid, Float:x, Float:y, Float:z)
{

    if(IsPlayerConnected(playerid) )
    {
	new Float:oldposx, Float:oldposy, Float:oldposz;
	new Float:tempposx, Float:tempposy, Float:tempposz;
	GetPlayerPos(playerid, oldposx, oldposy, oldposz);
	tempposx = (oldposx -x);
	tempposy = (oldposy -y);
	tempposz = (oldposz -z);
	if (((tempposx < range) && (tempposx > -range)) && ((tempposy < range) && (tempposy > -range)) && ((tempposz < range) && (tempposz > -range)))
    }	
    return 1;
}
Reply
#5

Quote:
Originally Posted by OpticKiller
Посмотреть сообщение
try it might work dante said you needed help
Код:
public PlayerToPoint(Float:range, playerid, Float:x, Float:y, Float:z)
{

    if(IsPlayerConnected(playerid) )
    {
	new Float:oldposx, Float:oldposy, Float:oldposz;
	new Float:tempposx, Float:tempposy, Float:tempposz;
	GetPlayerPos(playerid, oldposx, oldposy, oldposz);
	tempposx = (oldposx -x);
	tempposy = (oldposy -y);
	tempposz = (oldposz -z);
	if (((tempposx < range) && (tempposx > -range)) && ((tempposy < range) && (tempposy > -range)) && ((tempposz < range) && (tempposz > -range)))
    }	
    return 1;
}
Did nothing. Same errors
Reply
#6

Did you remember to forward it?

If so, can you post the forward.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)