09.03.2017, 20:02
Hey, sorry for creating this thread for such a small problem, but I am completely demolished by it, I just recently got back into scripting as just a tiny hobby to spend time with, makes me feel good when I see that I made things by entering letters.
Basically. Code:
THe errors are on the lines
415 - empty statement
419 - invalid expression, assumed zero
Basically what I want to do is the game to deny me if I want to enter my house while in my car
I also took a wild guess with the !=1 because ! means no and = means equal, so not equal 1
Thanks in advance, boys
Basically. Code:
PHP код:
CMD:enterhouse(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 45, 2007.29663, 1226.52783, 10.66455))
{
SetPlayerPos(playerid, 2049.0613, 941.1595, -2.0587);
}
if(GetPlayerState(playerid) !=1); //line 415
{
SendClientMessage(playerid, 0xE30000FF, "[ERROR] You must be on foot to enter the house!");
}
else //line 419
{
SendClientMessage(playerid, 0xE30000FF, "[ERROR] You are not near the house door!");
}
return 1;
}
415 - empty statement
419 - invalid expression, assumed zero
Basically what I want to do is the game to deny me if I want to enter my house while in my car
I also took a wild guess with the !=1 because ! means no and = means equal, so not equal 1
Thanks in advance, boys