Szerző Téma: /stats Probléma  (Megtekintve 488 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
/stats Probléma
« Dátum: 2013. augusztus 10. - 18:57:10 »
0 Show voters
Üdv, ma elkezdtem csinálni 1 admin rendszert csak a /statsra valamiért elég erõ teljesen errorozik
Kód:
 
CMD:stats(playerid)
{
new Kills,Deaths;
Kills = pInfo[playerid][Kills];
Deaths = pInfo[playerid][Deaths];
format(szFormat,sizeof szFormat,\"Öléseid Száma:%d, Halálaid Száma:%d Arány:%2.f\\nPontjaid:%d, Pénz:%d, Admin:%d, VIP:%d\",Kills,Deaths,( Kills && Deaths ) ? ( floatdiv( Kills, Deaths ) ) : ( 0.0 ),GetPlayerScore(playerid),GetPlayerMoney(playerid),pInfo[playerid][Admin],pInfo[playerid][Vip]);
ShowPlayerDialog(playerid,DIALOG_Stat,DIALOG_STYLE_MSGBOX,\"Statisztikád\",szFormat,\"OK\",\"\");
return 1;
}

 
Error:
 
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(458) : warning 219: local variable \"Kills\" shadows a variable at a preceding level
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(458) : warning 219: local variable \"Deaths\" shadows a variable at a preceding level
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(459) : error 022: must be lvalue (non-constant)
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(459) : warning 215: expression has no effect
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(460) : error 022: must be lvalue (non-constant)
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(460) : warning 215: expression has no effect
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(462) : warning 206: redundant test: constant expression is non-zero
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(462) : warning 213: tag mismatch
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(462) : warning 213: tag mismatch
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(458) : warning 203: symbol is never used: \"Deaths\"
C:\\Documents and Settings\\x.X-A363570C84464\\Dokumentumok\\samp03x_svr_R1-2_win32\\as.pwn(458) : warning 203: symbol is never used: \"Kills\"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
2 Errors.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal