Errors - 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)
+--- Thread: Errors (
/showthread.php?tid=446047)
Errors -
DAVIDXP - 24.06.2013
Hi SA-Mp.ro, I have some errors:
pawn Код:
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) //502
pawn Код:
if ( newkeys & KEY_YES ) //507
And the errors:
pawn Код:
(502) : error 029: invalid expression, assumed zero
(502) : error 004: function "OnPlayerKeyStateChange" is not implemented
(507) : error 017: undefined symbol "newkeys"
Help me please !
Re: Errors -
iJumbo - 24.06.2013
Show the whole function please
Have you #include <a-samp> ?
mybe a {} problem
Re: Errors -
park4bmx - 24.06.2013
update your server to a newer version!
or its coming from previous code.
Re: Errors -
rappy93 - 24.06.2013
Update your server and your includes. Also , for last error try defining "newkeys" like
new newkeys
Re: Errors -
DAVIDXP - 24.06.2013
Quote:
Originally Posted by iJumbo
Show the whole function please
Have you #include <a-samp> ?
mybe a {} problem
|
I have a_samp.
I ha ve the latest includes.
Here is my CODE :
pawn Код:
////////oThers Codes
}
if ( P_INFO[ playerid ][ ActionID ] != 9 )
SetPlayerChatBubble( playerid, lsText, 0xFFFFFFFF, 100.0, 5000 );
return 0;
}
//----------------------------------------------------------------------------//
public OnPlayerKeyStateChange( playerid, newkeys, oldkeys )
{
new
VehicleID = GetPlayerVehicleID( playerid )
;
if ( newkeys & KEY_YES )
{
/////Others Codess///
Ideas?
Re: Errors -
iJumbo - 24.06.2013
Check if you have some parentesis missed
what the frist code begin with?
the frist } ?
Re: Errors -
DAVIDXP - 24.06.2013
Quote:
Originally Posted by iJumbo
Check if you have some parentesis missed
what the frist code begin with?
the frist } ?
|
No the first is {
But i opened the program Missed Bracket Finder, and all is correct..
(
Re: Errors -
iJumbo - 24.06.2013
DO not trust so much Programs check yourself
Re: Errors -
dEcooR - 24.06.2013
if(newkeys == 65536)
{
}