Could you please help fix my script?
#1

Could someone help me with http://pawn.pastebin.com/d2fff401f ? I've been trying to work out the kinks but I haven't have much success. Here are the errors.

Quote:

C:\Users\Family\Desktop\SAMP server shit\filterscripts\CarSchool.pwn(49) : warning 213: tag mismatch
C:\Users\Family\Desktop\SAMP server shit\filterscripts\CarSchool.pwn(61) : warning 225: unreachable code
C:\Users\Family\Desktop\SAMP server shit\filterscripts\CarSchool.pwn(61) : warning 213: tag mismatch
C:\Users\Family\Desktop\SAMP server shit\filterscripts\CarSchool.pwn(7 : error 017: undefined symbol "drivers"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

I know why the error happened, because I haven't set a "drivers", but whenever I try to within the {}'s, it still doesn't work. And if I remove the {}'s, that fails even more. Also, I understand the /enter code isn't reachable. I can't seem to figure out why. Could anyone tell me how to fix these errors? Thank you.
Reply
#2

http://pawn.pastebin.com/m5ce1ca69
Reply
#3

Quote:
Originally Posted by <__Ǝthan__>
Thank you! Could you tell me what exactly I did wrong though?
Reply
#4

you had some extra returns in onplayercommand and you needed return 0 at the end of onplayercommand.
you never made "drivers" and assined it to the pickup
and you added ! to your commands and added how long they are at the end
Reply


Forum Jump:


Users browsing this thread: