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;
}
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.
enum player_info
{
objid[sizeof(Objects)],
bool:view[sizeof(Objects)]
}
new Player[MAX_PLAYERS][player_info];
bool:IsInReach(Float:x,Float:y,Float:z,Float:x2,Float:y2,Float:z2,Float:dist)
{
x = (x > x2) ? x - x2 : x2 - x;
if(x > dist) return false;
y = (y > y2) ? y - y2 : y2 - y;
if(y > dist) return false;
z = (z > z2) ? z - z2 : z2 - z;
if(z > dist) return false;
return true;
}
new timer;
GetPlayerCash(playerid)
GetPlayerMoney(playerid)
u need to make enums for saving data there are nothing like u used for getting stats
pawn Код:
pawn Код:
|
Money=750000
Bankcash=1005000
Score=0
Adminlevel=1337
Nameban=0
Army=1337
SWAT=1337
RegularPlayer=1337
DrugHouseOwner=0
OttoOwner=0
TSkill=20
RobSkill=21
HasPackC4=20
HasPackRope=20
HasPackMoney=0
SavedJailTime=0
SavedWantedLevel=0
Cash=750000
i think u are using un-complete code taken from other GM or FS please use full code from where u have taken this /stats command or make ur own one
|