PDA

View Full Version : Interior enter/exit


SaVage96
29/07/2015, 03:47 PM
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;
}

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

Dan.
29/07/2015, 03:49 PM
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.