on player kill player
#1

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

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
Reply
#3

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.
Reply
#4

edited it try again sorry
Reply
#5

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

his way alot better lol
Reply
#7

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
Reply
#8

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

Iggy pawns all !

He's like Chuck Norris of scripting.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)