Szerző Téma: TimeOut  (Megtekintve 542 alkalommal)

Szeby1995

  • Vendég
TimeOut
« Dátum: 2010. Március 30. - 15:28:28 »
0 Show voters
Ha all..
Az a bajom, hogy  szerómon ha meghal valaki akkor kidobja azt a \"playert\" (TimeOut..)
Ahiba miután kilépett a játék: Sa.exe hiba, <--de ez minden játékosa vonatkozik.... :dead:
Elore is kössz all...

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
TimeOut
« Válasz #1 Dátum: 2010. Március 30. - 15:32:11 »
0 Show voters
Kérném az OnPlayerDeath-ot

Szeby1995

  • Vendég
TimeOut
« Válasz #2 Dátum: 2010. Március 30. - 15:42:30 »
0 Show voters
Tess:
A mode-ban
 
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID) {
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
        if(gTeam[killerid] != gTeam[playerid]) {
       // Valid kill
       SendDeathMessage(killerid,playerid,reason);
   SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
}

 
Van levelSystem scriptem és abban is van OnPlayerDeath:
 
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) return 0;
    else
    {
        new str[128], killer[MAX_PLAYER_NAME];
       Score[killerid] = GetPlayerScore(killerid);
       Score[playerid] = GetPlayerScore(playerid);
       GetPlayerName(killerid,killer,50);
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(playerid,Score[playerid]-1);
SetPlayerScore(killerid,Score[killerid]+1);
         if(Score[killerid] == Level2)
{
......
« Utoljára szerkesztve: 2010. Március 30. - 15:44:44 írta Szeby1995 »

GroX

  • Vendég
TimeOut
« Válasz #3 Dátum: 2010. Március 30. - 16:25:31 »
0 Show voters
if(killerid == INVALID_PLAYER_ID) return 0;

 
Huhuuuu Itt a hiba.
 
if(killerid == INVALID_PLAYER_ID) return SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);

 
Asszem valahogy így.
« Utoljára szerkesztve: 2010. Március 30. - 16:28:11 írta GroX »

Szeby1995

  • Vendég
TimeOut
« Válasz #4 Dátum: 2010. Március 30. - 17:00:50 »
0 Show voters
kössz :)
O.. ez több errort csinált :(
« Utoljára szerkesztve: 2010. Március 31. - 10:13:09 írta Szeby1995 »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal