public OnPlayerDeath(playerid, killerid, reason) { // Add 1 to this killer's score. if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); return 1; } { GameTextForPlayer(playerid,"~r~Wasted",3000,2); return 1; } |
E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(52) : warning 202: number of arguments does not match definition E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(53) : warning 202: number of arguments does not match definition E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(54) : warning 202: number of arguments does not match definition E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(93) : error 055: start of function body without function header E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(95) : error 010: invalid function or declaration E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(135) : warning 217: loose indentation E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(140) : warning 217: loose indentation E:\LOSSAN~1\GAMEMO~1\LSGW2.pwn(145) : warning 209: function "OnPlayerCommandText" should return a value Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |
return 1;
}
{
Look at this :
And this Happen when i Complie It : Any ways to fix this ? ![]() |
public OnPlayerDeath(playerid, killerid, reason)
{
// Add 1 to this killer's score.
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
return 1; // wtf is that
} // *
{ // *
GameTextForPlayer(playerid,"~r~Wasted",3000,2);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
// Add 1 to this killer's score.
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
GameTextForPlayer(playerid,"~r~Wasted",3000,2);
return 1;
}
FunctionName(Args) { Function1; Function2; Function3; return; }
FunctionName(Args) { Function1; return; } { Function2; return; } { Function3; return; }