// TOP:
new
Morreu[MAX_PLAYERS char],
Matou[MAX_PLAYERS char]
;
if(!strcmp(cmdtext,"/frag", true))
{
new
string[128],
Nome[24]
;
GetPlayerName(playerid, Nome, 24);
format(string, sizeof(string),"(/Frag)[Status]: %s | Matou: %d | Morreu: %d | Score: %d", Nome, Matou{playerid}, Morreu{playerid}, GetPlayerScore(playerid));
SendClientMessageToAll(playerid, -1, string);
return true;
}
// OnPlayerDeath
Morre{playerid) ++;
Matou{killerid} ++;
pawn Код:
|
pawn Код:
|
SendClientMessageToAll(-1, string);
E a parte do Dominou, X1 Ganhos e X1 Perdidos?
Tbm estou precisando... |
vocк estб fazendo isso errado...
o certo й: pawn Код:
|
Morre{playerid) ++;
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(922) : error 017: undefined symbol "Morre"
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(922) : warning 215: expression has no effect
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(922) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(922) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(922) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(1191) : error 001: expected token: "-identifier-", but found "new"
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(1192) : error 017: undefined symbol "Nome"
C:\Documents and Settings\Luciano\Desktop\GAMEMODE\gamemodes\LSTDM.pwn(1193) : error 017: undefined symbol "Nome"
new Nome[24];
GetPlayerName(playerid, Nome, 24);
format(string, sizeof(string),"(/Frag)[Status]: %s | Matou: %d | Morreu: %d | Score: %d", Nome, Matou{playerid}, Morreu{playerid}, GetPlayerScore(playerid));