Scripting beginner, need help
#1

Hello, Today i was going to make a new FS! And i get this errors

Code:
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(40) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(44) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(47) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(51) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(54) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(58) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(61) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(66) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(69) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(74) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(77) : error 010: invalid function or declaration
C:\Documents and Settings\Alex\Skrivbord\server\gamemodes\test.pwn(83) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


12 Errors.
Here u can check my code

http://pastebin.com/m57bace48

Thanks,

Adam Cheste
Reply
#2

You should put lines 39-84 in OnPlayerCommandText callback
Reply
#3

http://pastebin.com/m32ba137f

Sorted it for you. It should be right, if not i'm sorry i'm not on a decent computer lol, so I havn't got all my scripting tools.
Reply
#4

Quote:
Originally Posted by Burridge
http://pastebin.com/m32ba137f

Sorted it for you. It should be right, if not i'm sorry i'm not on a decent computer lol, so I havn't got all my scripting tools.
The one who replied above to you already figured the problem I guess.
Reply
#5

Quote:
Originally Posted by Burridge
http://pastebin.com/m32ba137f

Sorted it for you. It should be right, if not i'm sorry i'm not on a decent computer lol, so I havn't got all my scripting tools.
It will give error because there is not 'cmd' defined.
Reply
#6

uhm nothing of this work
Reply
#7

reupload it again.
Reply
#8

http://pastebin.com/m57bace48
Reply
#9

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Burridge
http://pastebin.com/m32ba137f

Sorted it for you. It should be right, if not i'm sorry i'm not on a decent computer lol, so I havn't got all my scripting tools.
It will give error because there is not 'cmd' defined.
Gah! I told you I wasn't in good form. I need my computer back sooon!

Pastebin.com wasn't working for me for some reason, so using pastebin.ca instead.

http://pastebin.ca/1595205

Fixed my fail. Sorry.
Reply
#10

np! thanks for ur help!!

EDIT: Now i get 2 errors :S

Code:
error 017: undefined symbol "strtok"
error 033: array must be indexed (variable "cmd")
Pastebin: http://pastebin.ca/1595386

Pastebin.com aint working for me either! So i took ca
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)