SA-MP Forums Archive
Need help! - 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: Need help! (/showthread.php?tid=334522)



Need help! - Derek_Westbrook - 15.04.2012

Код:
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(1433) : error 017: undefined symbol "KEY_N"
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(1434) : error 017: undefined symbol "KEY_SPACEBAR"
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(4794) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(4797) : error 010: invalid function or declaration
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(4801) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
I need help with this..Im editting/scripting a Basic Roleplay Script..And I got this errors

Here is the line

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new string[512];
	if(PRESSED(KEY_N))
	if(PRESSED(KEY_SPACEBAR))
    {



Re: Need help! - Derek_Westbrook - 15.04.2012

No one?


Re: Need help! - RollTi - 15.04.2012

there is no such KEY_N or KEY_SPACEBAR

Код:
KEY_N - Not Available
KEY_SPACEBAR - KEY_SPRINT (Not sure)



Re: Need help! - Derek_Westbrook - 15.04.2012

Quote:
Originally Posted by RollTi
Посмотреть сообщение
there is no such KEY_N or KEY_SPACEBAR

Код:
KEY_N - Not Available
KEY_SPACEBAR - KEY_SPRINT (Not sure)
Код:
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(4793) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(4796) : error 010: invalid function or declaration
C:\Documents and Settings\archienal\My Documents\Downloads\mj\scripting shits\Roleplay\gamemodes\rp.pwn(4800) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Thanks its fixed now but I have 3 errors left..
Idk how to fix it can't understand :\


Re: Need help! - RollTi - 15.04.2012

Show the error lines


Re: Need help! - Phyrunx - 15.04.2012

Post your lines From 4793 to 4800
So we can tell you What's the Problem and How to fix it


Re: Need help! - Derek_Westbrook - 15.04.2012

Quote:
Originally Posted by Phyrunx
Посмотреть сообщение
Post your lines From 4793 to 4800
So we can tell you What's the Problem and How to fix it
It was this

Код:
CMD:afk(playerid,params[]);

CMD:kill(playerid,params[]);
SetPlayerHealth(playerid, 0);



Re: Need help! - RollTi - 15.04.2012

never tired to try this?

pawn Код:
CMD:afk(playerid, params[])
{
     //codes goes here
     return 1;
}

CMD:kill(playerid, params[]) return SetPlayerHealth(playerid, 0);

or

CMD:kill(playerid, params[])
{
    SetPlayerHealth(playerid, 0);
    return 1;
}