SA-MP Forums Archive
on player kill player - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: on player kill player (/showthread.php?tid=156850)



on player kill player - shoru93 - 24.06.2010

w hen i kill anyone i want to show text" nice shot"
and when i die i want to show" killed"


Re: on player kill player - iggy1 - 24.06.2010

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
  public OnPlayerDeath(playerid, killerid, reason)
  {
    new Kstring[10],Dstring[5];
    format(Kstring,sizeof(Kstring),"Nice shot");
    format(Dstring,sizeof(Dstring),"Died");
    GameTextForPlayer(killerid, Kstring, 3000, 4);
    GameTextForPlayer(killerid, Dstring, 3000, 4);
  }
  return 1;
}
edit:mistake fixed


Re: on player kill player - shoru93 - 24.06.2010

what?

D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(169 ) : error 021: symbol already defined: "OnPlayerDeath"
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(171 ) : error 017: undefined symbol "kstring"
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(171 ) : error 029: invalid expression, assumed zero
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(171 ) : warning 215: expression has no effect
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(172 ) : error 017: undefined symbol "kstring"
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(172 ) : error 029: invalid expression, assumed zero
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(172 ) : warning 215: expression has no effect
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(173 ) : error 017: undefined symbol "kstring"
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(174 ) : error 017: undefined symbol "dstring"
D:\Games\GRANDT~1\GTASHOT\GAMEMO~1\gtashot.pwn(177 ) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


8 Errors.



Re: on player kill player - iggy1 - 24.06.2010

edited it try again sorry


Re: on player kill player - DJDhan - 24.06.2010

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
GameTextForPlayer(killerid, "Nice Shot!", 3000, 3);
GameTextForPlayer(playerid, "Killed!", 3000, 3);
return 1;
}



Re: on player kill player - iggy1 - 24.06.2010

his way alot better lol


Re : on player kill player - mouradde48 - 20.12.2010

error n 01 ---> You cant't Use 2 symbols at a time
add the code below The Symbol OnPlayerDeath()

It Means You Must Have Only 1 Symbol With The Same name
...
Sorry For My Bad English


Re : on player kill player - mouradde48 - 20.12.2010

error n 02 ---> Remove the "kstring" Because It's Not Defined yet...


Re: on player kill player - cmg4life - 20.12.2010

Iggy pawns all !

He's like Chuck Norris of scripting.