Posts: 190
Threads: 49
Joined: Jan 2012
Tipo quando alguem mata uma pessoa aparecer que o player tal matou outro player
Posts: 17
Threads: 1
Joined: Jun 2012
Reputation:
0
Explique-se melhor oque vocк que dizer com isso,quer uma comando de quem matou quem ou quer retira-lo ?
Posts: 1,124
Threads: 75
Joined: Nov 2012
pawn Код:
new Fala[64];
new Nome[24];
new Nome2[24];
GetPlayerName(killerid,Nome,sizeof(Nome));
GetPlayerName(playerid,Nome2,sizeof(Nome2));
format(Fala,sizeof(Fala),"Player %s matou %s",Nome,Nome2);
SendClientMessageToAll(-1,Fala);
Posts: 190
Threads: 49
Joined: Jan 2012
Quote:
Originally Posted by BielCOP
pawn Код:
new Fala[64]; new Nome[24]; new Nome2[24];
GetPlayerName(killerid,Nome,sizeof(Nome)); GetPlayerName(playerid,Nome2,sizeof(Nome2)); format(Fala,sizeof(Fala),"Player %s matou %s",Nome,Nome2); SendClientMessageToAll(-1,Fala);
|
Onde ponho isso no comando?
Se for da um erro que e do killerid
Posts: 1,124
Threads: 75
Joined: Nov 2012
Posts: 190
Threads: 49
Joined: Jan 2012
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(696) : error 021: symbol already defined: "format"
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(69
: error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Posts: 190
Threads: 49
Joined: Jan 2012
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(284) : warning 219: local variable "Nome" shadows a variable at a preceding level
C:\Users\HP\Desktop\Gamemodes\gamemodesca\gamemode s\sfdm.pwn(471) : warning 219: local variable "Nome" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 1928 bytes
Code size: 91140 bytes
Data size: 26128 bytes
Stack/heap size: 16384 bytes; estimated max. usage=1540 cells (6160 bytes)
Total requirements: 135580 bytes
2 Warnings.