16.11.2011, 12:03
Hola
Tengo 2 warnings al recopilar mi GM son estos
pwn( 1808 ) : warning 209: function "OnPlayerSpawn" should return a value
pwn( 1816 ) : warning 217: loose indentation
y en esas lineas tengo esto:
Linea 1807: return 1;
Linea 1808: }
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID){
SendDeathMessage(killerid,playerid,reason);
Linea 1816: if(gTeam[killerid] != gTeam[playerid]){
GivePlayerMoney(killerid, 300);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}else{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
GivePlayerMoney(killerid, -300);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
}
return 1;
}
que esta dandome el warning? ayudenme
saludos....
Tengo 2 warnings al recopilar mi GM son estos
pwn( 1808 ) : warning 209: function "OnPlayerSpawn" should return a value
pwn( 1816 ) : warning 217: loose indentation
y en esas lineas tengo esto:
Linea 1807: return 1;
Linea 1808: }
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID){
SendDeathMessage(killerid,playerid,reason);
Linea 1816: if(gTeam[killerid] != gTeam[playerid]){
GivePlayerMoney(killerid, 300);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}else{
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason );
GivePlayerMoney(killerid, -300);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
}
return 1;
}
que esta dandome el warning? ayudenme
saludos....