SA-MP Forums Archive
Scripting beginner, 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Scripting beginner, need help (/showthread.php?tid=100597)



Scripting beginner, need help - Tutrix - 05.10.2009

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


Re: Scripting beginner, need help - Sznupek - 05.10.2009

You should put lines 39-84 in OnPlayerCommandText callback


Re: Scripting beginner, need help - Burridge - 05.10.2009

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.


Re: Scripting beginner, need help - MenaceX^ - 05.10.2009

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.


Re: Scripting beginner, need help - Correlli - 05.10.2009

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.


Re: Scripting beginner, need help - Tutrix - 05.10.2009

uhm nothing of this work


Re: Scripting beginner, need help - saiberfun - 05.10.2009

reupload it again.


Re: Scripting beginner, need help - Tutrix - 05.10.2009

http://pastebin.com/m57bace48


Re: Scripting beginner, need help - Burridge - 05.10.2009

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.


Re: Scripting beginner, need help - Tutrix - 05.10.2009

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