03.05.2011, 00:37
(
Последний раз редактировалось Shadoww5; 03.05.2011 в 09:15.
)
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new Shadow[128];
Rec[killerid]++;
Delete3DTextLabel(Recompensa[killerid]);
new GRANA = Rec[killerid]*1000;
format(Shadow,sizeof(Shadow),"RECOMPENSA $ %d",GRANA);
Recompensa[killerid] = Create3DTextLabel(Shadow,0xFFFF00AA,10.0,40.0,10.0,20.0,0);
Attach3DTextLabelToPlayer(Recompensa[killerid], killerid, 0,0,0.4);
new scorep = GetPlayerScore(playerid);
new scorek = GetPlayerScore(killerid);
if(scorep > 0) SetPlayerScore(playerid, scorep-1);
SetPlayerScore(killerid,scorek+1);
GameTextForPlayer(playerid, "~r~Morto", 3000, 5);
//new GRANA2 = Rec[playerid] * 1000;
AddReal(killerid,GRANA);
if(Rec[playerid] > 0) Rec[playerid] = 0;
SendDeathMessage(killerid, playerid, reason);
return 1;
}
2 - Qual a diferenзa entre "return 1", "return 0" e "return -1"?
3 - O que se quer dizer quando se compara algo com -1 ?
4 -
pawn Код:
if(strcmp(cmd, "/sbiz", true) == 0)
Se puder me ajudar, agradeзo.
OBS: Dispenso comentбrios inuteis.