/kill command bugged
#1

Okey, I have this in gf.pwn

line 26244| public OnPlayerCommandText(playerid, cmdtext[])
line 26245| {
line 26246| new cmd[256], idx;
line 26247| cmd = strtok(cmdtext, idx);
line 26248|
line 26249| if (strcmp(cmdtext, "/kill", true) == 0)
line 26250| {
line 26251| SetPlayerHealth(playerid, 0.0);
line 26252| }
line 26253| }


but when I compile it I get this:

C:\Program\Rockstar Games\SAMPserver\gamemode\gf.pwn(26245) : error 021: symbol already defined: "OnPlayerCommandText"
C:\Program\Rockstar Games\SAMPserver\gamemode\gf.pwn(26253) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.




(Just to show you wich lines the things are at I wrote them in) Help me please
Reply


Messages In This Thread
/kill command bugged - by skalman - 03.06.2009, 13:29
Re: /kill command bugged - by Correlli - 03.06.2009, 13:34
Re: /kill command bugged - by Think - 03.06.2009, 13:38
Re: /kill command bugged - by skalman - 03.06.2009, 13:48
Re: /kill command bugged - by Correlli - 03.06.2009, 13:52
Re: /kill command bugged - by skalman - 03.06.2009, 13:59
Re: /kill command bugged - by Correlli - 03.06.2009, 14:01
Re: /kill command bugged - by radhakr - 03.06.2009, 17:52
Re: /kill command bugged - by gergo11 - 03.06.2009, 18:13
Re: /kill command bugged - by Mike Garber - 03.06.2009, 20:32

Forum Jump:


Users browsing this thread: 2 Guest(s)