15.05.2014, 15:11
So this is the stats cmd:
But how i can define these and were ?
PHP код:
dcmd_stats(playerid, params[])
{
#pragma unused params
new statz[1024];
strcat(statz, "Score: %d\n",GetPlayerScore(playerid));
strcat(statz, "Bank: %d\n",GetPlayerBankcash(playerid));
strcat(statz, "Money: $%d\n",GetPlayerCash(playerid));
strcat(statz, "Kills: %d\n",KILLZ(playerid));
strcat(statz, "Admin: %d\n",Adminlevel(playerid));
strcat(statz, "Army: %d\n",Army(playerid));
strcat(statz, "SWAT: %d\n",SWAT(playerid));
strcat(statz, "Regular: %d\n",RegularPlayer(playerid));
strcat(statz, "TerrorLVL: %d\n",TSkill(playerid));
strcat(statz, "RobbberLVL: %d\n",GetPlayerRobSkill(playerid));
strcat(statz, "C4: %d\n",GetPlayerHasPackC4(playerid));
strcat(statz, "Rope: %d\n",GetPlayerHasPackRope(playerid));
ShowPlayerDialog(playerid,644,DIALOG_STYLE_MSGBOX,"Stats",statz,"Close","");
return true;
}
PHP код:
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3445) : error 017: undefined symbol "GetPlayerBankcash"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3446) : error 017: undefined symbol "GetPlayerCash"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3447) : error 017: undefined symbol "KILLZ"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3448) : error 017: undefined symbol "Adminlevel"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3449) : error 017: undefined symbol "Army"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3450) : error 017: undefined symbol "SWAT"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3451) : error 017: undefined symbol "RegularPlayer"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3452) : error 017: undefined symbol "TSkill"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3453) : error 017: undefined symbol "GetPlayerRobSkill"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3454) : error 017: undefined symbol "GetPlayerHasPackC4"
C:\Users\WeeD\Desktop\samp03\gamemodes\NLCNR.pwn(3455) : error 017: undefined symbol "GetPlayerHasPackRope"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
11 Errors.