Need help!
#1

Код:
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))
    {
Reply
#2

No one?
Reply
#3

there is no such KEY_N or KEY_SPACEBAR

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

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 :\
Reply
#5

Show the error lines
Reply
#6

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

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);
Reply
#8

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)