CMD:stats(playerid,params[]) {
new string[100], pDeaths, player1, h, m, s,playername[MAX_PLAYER_NAME];
if(isnull(params)) player1 = playerid;
else player1 = strval(params);
if(IsPlayerConnected(player1)) {
TotalGameTime(player1, h, m, s);
GetPlayerName(player1, playername, sizeof(playername));
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
new str[120], str1[100], str2[100];
format(str, sizeof(str),"| ------ | %s's Status | ------- |", PlayerName2(player1));
format(string,sizeof(string),"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
format(str1, sizeof(str1),"Admin Level: %d | Moderator: %s | Rank: %s | Team: %s | Class: %s", PlayerInfo[player1][Level], PlayerInfo[player1][Helper] ? ("Yes") : ("No"), GetRankName(player1), GetTeamName(player1), GetClass(player1));
format(str2, sizeof(str2),"TimePlayed: [%d] hrs [%d] mins [%d] secs", h, m, s);
SendClientMessage(playerid, 0xFFFFFFFF,str);
SendClientMessage(playerid, 0xAAAAAAFF,string);
SendClientMessage(playerid, 0xAAAAAAFF,str1);
SendClientMessage(playerid, 0xAAAAAAFF,str2);
SendClientMessage(playerid, 0xFFFFFFFF,"| ---------------------------------------------------- |");
} else return SendClientMessage(playerid, red, "Player Not Connected!");
return 1;
}
"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
Web = TextDrawCreate(485.000000, 10.000000, "Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f");
TextDrawBackgroundColor(Web, 255);
TextDrawFont(Web, 1);
TextDrawLetterSize(Web, 0.330000, 1.200000);
TextDrawColor(Web, -1);
TextDrawSetOutline(Web, 1);
TextDrawSetProportional(Web, 1);
TextDrawSetShadow(Web,1);
format(str, sizeof(str), "Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(playerid), Rest of the money, kills deaths and etc. info here); Web = TextDrawCreate(485.000000, 10.000000, str); |
format(str, sizeof(str), "Stuff");
SendClientMessage(playerid, -1, str);
format(str, sizeof(str), "Stuff");
SendClientMessage(playerid, -1, str);
format(str, sizeof(str), "Stuff");
format(str2, sizeof(str2), "Stuff");
SendClientMessage(playerid, -1, str);
SendClientMessage(playerid, -1, str2);
pawn Код:
|
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1410) : error 017: undefined symbol "str"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1410) : error 017: undefined symbol "str"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1410) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1410) : fatal error 107: too many error messages on one line
format(str, sizeof(str), "Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
Web = TextDrawCreate(485.000000, 10.000000, str);
TextDrawBackgroundColor(Web, 255);
TextDrawFont(Web, 1);
TextDrawLetterSize(Web, 0.330000, 1.200000);
TextDrawColor(Web, -1);
TextDrawSetOutline(Web, 1);
TextDrawSetProportional(Web, 1);
TextDrawSetShadow(Web,1);
new str[100];
C:\Users\Administrator\Desktop\ProjectSvT\pawno\include\fixes2.inc(18) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\pawno\include\fixes2.inc(42) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017: undefined symbol "player1"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(2921) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3347) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3363) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3379) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3395) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3411) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3530) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3682) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3829) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(3976) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(4123) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(4270) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(4417) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(4565) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(4712) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(4859) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5006) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5153) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5300) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5447) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5594) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5741) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(5888) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(6035) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(6540) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(7166) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(7224) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(7235) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(8151) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(8180) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(8206) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(8251) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(9978) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(10516) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(10546) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(10578) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(10594) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(10824) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(11929) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(12032) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(12051) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(12389) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(13397) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(13656) : warning 219: local variable "str" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
new string[100], pDeaths, player1, h, m, s,playername[MAX_PLAYER_NAME];
if(isnull(params)) player1 = playerid;
else player1 = strval(params);
if(IsPlayerConnected(player1)) {
TotalGameTime(player1, h, m, s);
GetPlayerName(player1, playername, sizeof(playername));
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
new str[120], str1[100], str2[100];
format(str, sizeof(str),"| ------ | %s's Status | ------- |", PlayerName2(player1));
format(string,sizeof(string),"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f", GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
Web = TextDrawCreate(485.000000, 10.000000, str);
TextDrawBackgroundColor(Web, 255);
TextDrawFont(Web, 1);
TextDrawLetterSize(Web, 0.330000, 1.200000);
TextDrawColor(Web, -1);
TextDrawSetOutline(Web, 1);
TextDrawSetProportional(Web, 1);
TextDrawSetShadow(Web,1);
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017: undefined symbol "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017: undefined symbol "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : fatal error 107: too many error messages on one line
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 028: invalid subscript (not an array or too many subscripts): "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 028: invalid subscript (not an array or too many subscripts): "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : fatal error 107: too many error messages on one line