C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(43) : error 017: undefined symbol "SendClienMessage"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.new Kill = Kill[playerid];
new Death = Death[playerid];
format(string, sizeof(string), "Kill: %d - Death: %d", kill, Death);
u_u bas je sait pas si sa marche mais en tout cas sa compile pas xD :
[codeC:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(5) : error 021: symbol already defined: "kill"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(5) : error 008: must be a constant expression; assumed zero
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(6) : error 021: symbol already defined: "Death"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(6) : error 008: must be a constant expression; assumed zero
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(46) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(5) : error 021: symbol already defined: "killp"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(6) : error 021: symbol already defined: "Deathp"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.#include <a_samp>
#include <a_players>
new killp[MAX_PLAYERS];
new Deathp[MAX_PLAYERS];
new killp = kill[playerid];
new Deathp = Death[playerid];
new string[64];
#define SendAllInfoMessage(%0) SendClientMessage(0xFF9900AA, %0)C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(3) : error 017: undefined symbol "kill"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(4) : error 017: undefined symbol "Death"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(26) : error 028: invalid subscript (not an array or too many subscripts): "killp"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(26) : warning 215: expression has no effect
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(26) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(26) : error 029: invalid expression, assumed zero
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(26) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.#include <a_samp>
#include <a_players>
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];
new killp = kill[playerid];
new Deathp = Death[playerid];
new string[64];
#define SendAllInfoMessage(%0) SendClientMessage(0xFF9900AA, %0)
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(5) : error 017: undefined symbol "playerid"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(5) : error 008: must be a constant expression; assumed zero
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(6) : error 017: undefined symbol "playerid"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(6) : error 008: must be a constant expression; assumed zero
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(28) : error 028: invalid subscript (not an array or too many subscripts): "killp"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(28) : warning 215: expression has no effect
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(28) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(28) : error 029: invalid expression, assumed zero
C:\DOCUME~1\BrunoLB\Bureau\ULTIMA~1\FILTER~1\Stats.pwn(28) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
#include <a_samp>
#include <a_players>
new kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];
new killp = kill[playerid];//ca c nul
new Deathp = Death[playerid];//idem
new string[64];
#define SendAllInfoMessage(%0) SendClientMessage(0xFF9900AA, %0)
new Kill[MAX_PLAYERS];
new Death[MAX_PLAYERS];Kill[playerid] = 0;
Death = 0;Kill[killerid] = Kill[playerid] + 1;
Death[playerid] = Death[playerid] + 1;format(string, sizeof(string), "Kill: %d - Death: %d", kill[playerid], Death[playerid]);format(tmp, sizeof(tmp), "Kill: %d - Death: %d" , kill[0], Death[0], tmp);
Tu mets sa :format(tmp, sizeof(tmp), "Kill: %d - Death: %d" , kill[playerid], Death[playerid]);
comme quoi je me fatigue a expliquer est rien n'est lu pourquoi continuer de t'aider master bru ?Comment sa ?
A la place de :Code: [Sélectionner]format(tmp, sizeof(tmp), "Kill: %d - Death: %d" , kill[0], Death[0], tmp);
Tu mets sa :Code: [Sélectionner]format(tmp, sizeof(tmp), "Kill: %d - Death: %d" , kill[playerid], Death[playerid]);
format(string, sizeof(string), "Kill: %d - Death: %d", Kill[playerid], Death[playerid]);Enfin a par les tmp et string mais c'est la même chose non ?? (sinon c'est quoi la différence ?)Enfin a par les tmp et string mais c'est la même chose non ?? (sinon c'est quoi la différence ?)
Kill[killerid] = Kill[playerid] + 1;
Death[playerid] = Death[playerid] + 1;je t'explique tu as fait la bourde que je pensaiCode: [Sélectionner]Kill[killerid] = Kill[playerid] + 1;
Death[playerid] = Death[playerid] + 1;
reflechit un tout petit peu
Kill[killerid] += 1;
Death[playerid] += 1;
Kill[killerid] = Kill[killerid] + 1;
Death[playerid] = Death[playerid] + 1; if(killerid != INVALID_PLAYER_ID)
{
Kill[killerid] += 1;//Death également ici si l'on ne veut pas compter les suicides
}
Death[playerid] += 1; Kill[killerid] = Kill[playerid] ++;
Death[playerid] = Death[playerid] ++;public OnPlayerDeath(playerid, killerid, reason)
{
Kill[killerid] = Kill[playerid] ++;
Death[playerid] = Death[playerid] ++;
return 1;
public OnPlayerDeath(playerid, killerid, reason)
{
Kill[killerid] ++;
Death[playerid] ++;
return 1;
new Deaths[MAX_PLAYERS];
new Kills[MAX_PLAYERS];
new string[60];public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
Kills[killerid] += 1;
Deaths[playerid] += 1;
}
else
{
Deaths[playerid] += 1;
}
return 1;
}public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/mystats",cmdtext,true)==0)
{
format(string,256, "Tuer: [%d] Mort: [%d] Argent: [%d] ",Kills[playerid],Deaths[playerid],GetPlayerMoney(playerid));
SendClientMessage(playerid,0xFFFFFFAA,string);
return 1;
}
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
Kills[killerid] += 1;
Deaths[playerid] += 1;
}
else
{
Deaths[playerid] += 1;
}
return 1;
}
Bonjour a tous,
Alors voila j'aimerai cree un DM stats qui prend les 5 meilleur joueurs qui resemble un peu a sa :
...:::: DeathMatch Stats ::::....
[XST]BuBuNo : 27 kill 19 Death
igfigf : 12 kill 20 Death
ituehj : 12 kill 21 Death
ihodn : 1 kill 59 Death
fire : 1 kill 29 Death
Et j'aimerai que sa l'es enregistre dans un fichier.
Merci d'avance de votre aide.
public OnPlayerDeath(playerid, killerid, reason)
{
new templine[512];
new tmp[128];
if(killerid != INVALID_PLAYER_ID)
{
Kills[killerid] ++;
Deaths[playerid] ++;
}
else
{
Deaths[playerid] += 1;
}
GetPlayerName(playerid, tmp, MAX_PLAYER_NAME);
new f;
f = fopen("dmstats.txt", io_readwrite);
format(tmp,sizeof(tmp),"Dm Stats\n");
fwrite(f,tmp);
format(tmp,sizeof(tmp),"%s death : %d kill %d\n"Kills[playerid],Deaths[playerid]);
fwrite(f,tmp);
return 1;
}C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(47) : warning 213: tag mismatch
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(49) : warning 213: tag mismatch
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(50) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(50) : warning 215: expression has no effect
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(50) : warning 215: expression has no effect
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(50) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(50) : error 029: invalid expression, assumed zero
C:\Documents and Settings\BrunoLB\Bureau\Ultimate_Stunter\filterscripts\Stats.pwn(50) : 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.