How To Fix This Error?
#1

This Is The SCRIPT! http://pastebin.com/tThZqtES

And This Is The ERROR!

Код:
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(5771) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(6001) : error 017: undefined symbol "IsPlayerLoggedIn"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
Please Help Me To Fix This!
Reply
#2

Put this at the top of your script

Quote:

new IsPlayerLoggedIn;
new SPECIAL_ACTION_CUFFED;

That should remove that error, the script may have faults running tho.
Reply
#3

pawn Код:
#define SPECIAL_ACTION_CUFFED 24
You probably don't have IsPlayerLoggedIn.
Remove IsPlayerLoggedIn. Or create another stock for checking Player logged in state.
EX:
pawn Код:
stock IsPlayerLoggedIn(playerid)
{
if(YourVariable[Logged] == 1) return 1;
else if(YourVariable[Logged] == 0) return 0;
}
Reply
#4

Replace
pawn Код:
SetPlayerSpecialAction(playerb,SPECIAL_ACTION_CUFFED);
with
pawn Код:
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CUFFED);
Reply
#5

its still got 4 errors

Код:
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(6004) : error 012: invalid function call, not a valid address
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(6004) : warning 215: expression has no effect
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(6004) : error 001: expected token: ";", but found ")"
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(6004) : error 029: invalid expression, assumed zero
C:\Users\ahmad hadi\Documents\Roleplay\gamemodes\rp.pwn(6004) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

Show us the lines.
Reply
#7

what lines?
Reply
#8

Lines where those errors occur.
Reply
#9

here i send all the lines http://pastebin.com/NMZJzpeY
Reply
#10

Enter in the place where you receive these errors, press CTRL+G and in that dialog write 6004 there is the line, give it to us to fix your problem
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)