03.06.2009, 13:29
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
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