26.05.2010, 13:11
Why Is Not Working
My Code
Update 1
1.I have 1 pickup (don't do anything just rotating around
2.If I am In Her I want to press a key (submission for me) and if i have 50$ buy 1 piece
3.Compile with no error
P.S Sorry My Bad English I Am ROMANIAN
My Code
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new Money = GetPlayerMoney(playerid);
if (PRESSED(KEY_SUBMISSION))
{
if(Money > 49)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 4018.4192, -567.8613, 34.7879))
{
GivePlayerWeapon(playerid, 22, 35);
GivePlayerMoney(playerid, -75);
}
}
}
return 1;
}
1.I have 1 pickup (don't do anything just rotating around
2.If I am In Her I want to press a key (submission for me) and if i have 50$ buy 1 piece
3.Compile with no error
P.S Sorry My Bad English I Am ROMANIAN