10.01.2010, 12:35
Hello.
When someone joins, kills or leaves you see that message 2 times.
When I compile the gamemode I have 1 warning
(I removed the futher adress, thats personal.)
And now the piece of code that the warning is about:
What is wrong with this?
Thanks, Jaap Koopman.
When someone joins, kills or leaves you see that message 2 times.
When I compile the gamemode I have 1 warning
Код:
myfirstdeathmatch4.pwn(792) : warning 209: function "OnPlayerCommandText" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
And now the piece of code that the warning is about:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) if (strcmp(cmdtext, "/kill",true) == 0) { SetPlayerHealth(playerid, 0); return 1; }
Thanks, Jaap Koopman.