SA-MP Forums Archive
1 pROBLEM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 1 pROBLEM (/showthread.php?tid=189406)



1 pROBLEM - Carrera - 11.11.2010

Hi,plz can some one help my whit this and tnx for help:

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(PhoneInOut[playerid] == 1) //If Phone is out
    {
        if(newkeys == KEY_WALK)//To hide phone, ALT
        {
        	HidePhoneForPlayer(playerid);
		}
		if(newkeys == KEY_SECONDARY_ATTACK)//ENTER
		{
		    if(PhoneButtonMode[playerid] == 1)// If player is navigating menu
      {
          		OnPlayerSelectedPhoneMenuRow(playerid, PhoneMenuCallItemPosition[playerid]);
				return 1;
			}
			else
			if(PhoneButtonMode[playerid] == 2)//If is navigating keys
		    {
				new key;
				if(CurrentKey[playerid] == 10){key = 0;}else key = CurrentKey[playerid];
				OnPlayerSelectedPhoneKey(playerid, key);
			}
		}
        return 1;
	}
	return 1;
}
Код:
C:\Documents and Settings\Mr.Data\Desktop\Exodus\filterscripts\mob.pwn(163) : warning 217: loose indentation
C:\Documents and Settings\user1\folnder\modd\filterscripts\xxx.pwn(190) : error 004: function "OnPlayerSelectedPhoneMenuRow" is not implemented
C:\Documents and Settings\user1\folnder\modd\filterscripts\xxx.pwn(198) : error 004: function "OnPlayerSelectedPhoneKey" is not implemented
C:\Documents and Settings\user1\folnder\modd\filterscripts\xxx.pwn(438) : error 004: function "OnPhoneHidden" is not implemented
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Anyone know why?
What is the problem


Re: 1 pROBLEM - 0ne - 11.11.2010

there are no such callbacks like: Selectedphonemenurow,selectedphonekey,onphonehidde n.


Re: 1 pROBLEM - WillyP - 11.11.2010

You missed out a bracket somewhere.


Re: 1 pROBLEM - Carrera - 11.11.2010

https://sampforum.blast.hk/showthread.php?tid=122656


Re: 1 pROBLEM - Carrera - 11.11.2010

And yes i am try lik inc but i get the same error but in deafrend vhey

(190) : error 004: function "OnPlayerSelectedPhoneMenuRow" is not implemented


Re: 1 pROBLEM - Carrera - 11.11.2010

Anyone? ? ?


Re: 1 pROBLEM - Ritchie999 - 11.11.2010

By the looks of it, NeRoSiS has not put a "Public OnPlayerSelectedPhoneMenuRow" in the .inc file


Re: 1 pROBLEM - Carrera - 11.11.2010

plzz can you fixit?


Re: 1 pROBLEM - Ritchie999 - 11.11.2010

Well, im not a good enough scripter to do my own .inc files or what ever, and no one else even knows exactly how NeRoSiS scripts so i dont know if anyone else will be able to Make the OnPlayerSelectedPhoneMenuRow callback.. You might just have to wait for someone to release a new .inc file


Re: 1 pROBLEM - The_Moddler - 11.11.2010

Quote:
Originally Posted by Ritchie999
Посмотреть сообщение
By the looks of it, NeRoSiS has not put a " Public OnPlayerSelectedPhoneMenuRow" in the .inc file
He has to put it in he's GM, so Carrera, add
pawn Код:
public OnPlayerSelectedPhoneMenuRow
in your script.