CMD:stats(playerid, params[]) { new string[200], Float:Health; GetPlayerHealth(playerid, Health); format(string, sizeof(string),"_______________________________""[%s]""_______________________________", GetPlayerName(playerid)); SCM(playerid, COLOR_GREEN, string); format(string, sizeof(string),"[GENERAL]: Name: %s | Money: $%d | Level: %d | Kills: %d | Respect: %d | Number: %d", GetName(playerid),GetPlayerCash(playerid), PlayerInfo[playerid][pLevel], PlayerInfo[playerid][pKills],PlayerInfo[playerid][pRespect],PlayerInfo[playerid][pNumber]); SCM(playerid, COLOR_WHITE, string); format(string, sizeof(string),"[GENERAL]: Admin Level: %d | Cigarettes: %d | Beers: %d | Business Key: %d | House Key: %d", PlayerInfo[playerid][pAdmin], PlayerInfo[playerid][pCigarettes], PlayerInfo[playerid][pBeer], PlayerInfo[playerid][BizID], PlayerInfo[playerid][HouseID]); SCM(playerid, COLOR_WHITE, string); format(string, sizeof(string),"[GENERAL]: Age: %d | Bank: $%d | Experience: %d", PlayerInfo[playerid][pAge], PlayerInfo[playerid][pBankAccount], PlayerInfo[playerid][pExperience]); SCM(playerid, COLOR_WHITE, string); format(string, sizeof(string), "[DRUGS]: Marijuana: %d | Cocaine: %d | LSD: %d", PlayerInfo[playerid][dMarijuana], PlayerInfo[playerid][dCocaine], PlayerInfo[playerid][dLSD]); SCM(playerid, COLOR_WHITE, string); return 1; }
D:\Basic RP Script Scratch FIX\gamemodes\U1.pwn(721) : warning 202: number of arguments does not match definition D:\Basic RP Script Scratch FIX\gamemodes\U1.pwn(721) : warning 202: number of arguments does not match definition
format(string, sizeof(string),"_______________________________""[%s]""_______________________________", GetPlayerName(playerid)); SCM(playerid, COLOR_GREEN, string);
format(string, sizeof(string),"_______________________________[%s]_______________________________", GetPlayerName(playerid));
SCM(playerid, COLOR_GREEN, string);
format(string, sizeof(string),"[GENERAL]: Name: %s | Money: $%d | Level: %d | Kills: | Respect: | Number: ", GetPlayerName(playerid, name, sizeof(name)), GetPlayerCash(playerid), PlayerInfo[playerid][pLevel]);
stock GetPlayerNameEx(playerid)
{
new pName[25];
GetPlayerName(playerid, pName, sizeof(pName));
return pName;
}
Add this to your gamemode:
pawn Код:
GetPlayerName(playerid, name, sizeof(name)) with GetPlayerNameEx(playerid) and you're good to go! |