16.03.2010, 12:02
Hello again, just got a question about my ShowStats.
I got places where I want it to say "Yes or No" instead of just 1 or 0.
Hehe I've been trying to make it for my VIP Member script:
I get this error:
On the if and else if.
Thanks
I got places where I want it to say "Yes or No" instead of just 1 or 0.
Hehe I've been trying to make it for my VIP Member script:
Код:
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
new string[256];
new admin = PlayerInfo[playerid][pAdminLevel];
new VIP = PlayerInfo[playerid][pVIPMember];
new laerank = PlayerInfo[playerid][pLAERank];
new roleplay = PlayerInfo[playerid][pRoleplay];
new cash = GetPlayerMoney(targetid);
new bank = PlayerInfo[playerid][pBank];
new car = PlayerInfo[playerid][pCarLic];
new gun = PlayerInfo[playerid][pGunLic];
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
new Float:px,Float:py,Float:pz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];
format(coordsstring, sizeof(coordsstring),"Your Stats");
SendClientMessage(playerid, COLOR_YELLOW,coordsstring);
format(coordsstring, sizeof(coordsstring), "OOC: | Admin Level: %d | VIP Member: %d | LAE Rank: %d | Roleplay Points: %d |", admin, VIP, laerank, roleplay);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
format(coordsstring, sizeof(coordsstring), "IC: | Cash: $%d | Bank: $%d | Driving License: %d | Firearm License: %d |", cash, bank, car, gun);
SendClientMessage(playerid, COLOR_GREY,coordsstring);
if(PlayerInfo[playerid][pVIPMember] == 1) VIP = "Yes";
else if(PlayerInfo[playerid][pVIPMember] == 0) VIP = "No";
}
}
Код:
must be assigned to an array
Thanks


