PlayerInfo[playerid][Kills] PlayerInfo[playerid][Deaths]
new Float:ratio = floatdiv(PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
stock ShowPlayerStats(playerid)
{
format(string, sizeof(string), "%s stats:", GetPlayerName(playerid));
SendClientMessage(playerid,-1,string);
format(string, sizeof(string), "Password:(%i) Level:(%i) AdmLevel:(%i) DonatorLevel:(%i)", PlayerInfo[playerid][Password], PlayerInfo[playerid][Level], PlayerInfo[playerid][AdmLevel], PlayerInfo[playerid][Donator]);
SendClientMessage(playerid,-1,string);
format(string, sizeof(string), "Score:(%i) Kills:(%i) Deaths:(%i) Sucide(%i) KDR:(%i)", PlayerInfo[playerid][Score], PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], PlayerInfo[playerid][Sucide], PlayerInfo[playerid][KDR]);
SendClientMessage(playerid,-1,string);
format(string, sizeof(string), "VehicleTicket:(%i) VehicleID:(%i) VehicleLock:(%i) VehicleColor:(%ix%i)", PlayerInfo[playerid][vTicket], PlayerInfo[playerid][vKey], PlayerInfo[playerid][vLock], PlayerInfo[playerid][vColor], PlayerInfo[playerid][vColor2]);
SendClientMessage(playerid,-1,string);
return 1;
}
new Float:ratio = floatdiv(PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths]);
stock ShowPlayerStats(playerid)
{
format(string, sizeof(string), "%s stats:", GetPlayerName(playerid));
SendClientMessage(playerid,-1,string);
format(string, sizeof(string), "Password:(%i) Level:(%i) AdmLevel:(%i) DonatorLevel:(%i)", PlayerInfo[playerid][Password], PlayerInfo[playerid][Level], PlayerInfo[playerid][AdmLevel], PlayerInfo[playerid][Donator]);
SendClientMessage(playerid,-1,string);
format(string, sizeof(string), "Score:(%i) Kills:(%i) Deaths:(%i) Sucide(%i) KDR:(%f)", PlayerInfo[playerid][Score], PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], PlayerInfo[playerid][Sucide], ratio);
SendClientMessage(playerid,-1,string);
format(string, sizeof(string), "VehicleTicket:(%i) VehicleID:(%i) VehicleLock:(%i) VehicleColor:(%ix%i)", PlayerInfo[playerid][vTicket], PlayerInfo[playerid][vKey], PlayerInfo[playerid][vLock], PlayerInfo[playerid][vColor], PlayerInfo[playerid][vColor2]);
SendClientMessage(playerid,-1,string);
return 1;
}
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 017: undefined symbol "string" C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 017: undefined symbol "string" C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 029: invalid expression, assumed zero C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Code:
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 017: undefined symbol "string" C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 017: undefined symbol "string" C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 029: invalid expression, assumed zero C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
new
string[ 103 ]
;
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(44) : warning 202: number of arguments does not match definition C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(44) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
format(string, sizeof(string), "%s stats:", GetPlayerName(playerid)); SendClientMessage(playerid,-1,string);