Interior enter/exit
#1

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if (PRESSED(KEY_YES**))//184
	{
		if(IsPlayerInRangeOfPoint(playerid, 1.0, ,-179.9135,1177.4730,19.8909))//186
    	{
        SetPlayerPos(playerid,204.332992,-166.694992,1000.523437);
        SetPlayerInterior(playerid,14);
    	}
	}
	return 1;
}
Quote:

D:\Jбtйkok\SAMP\gamemodes\mod.pwn(184) : error 029: invalid expression, assumed zero
D:\Jбtйkok\SAMP\gamemodes\mod.pwn(186) : error 029: invalid expression, assumed zero

Reply
#2

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(PRESSED(KEY_YES))
	{
		if(IsPlayerInRangeOfPoint(playerid, 1.0,-179.9135,1177.4730,19.8909))//186
    	{
        	SetPlayerPos(playerid,204.332992,-166.694992,1000.523437);
        	SetPlayerInterior(playerid,14);
    	}
	}
	return 1;
}
You had empty space between commas on line 186 and some random asterisks on line 184.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)