Help With Format - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help With Format (
/showthread.php?tid=318682)
Help With Format -
Buzzbomb - 16.02.2012
Did i reach the max on this format string
Reason I ask Is Everything Shows But pGangLeader I cant figure it out the gangleader is In Text The gang Name Shows But not leader
pawn Код:
format(string,sizeof(string),"~B~Player Info~n~~B~Name: ~w~%s~n~~B~Money: ~w~%d~n~~B~Bank: ~w~%d~n~~B~Skin: ~W~%d~n~~B~Health: ~W~%.1f/100~n~~B~Armour: ~W~%.1f/100~n~~B~Area: ~W~%s~n~~B~Gang: ~w~%s~n~~B~GangLeader: ~w~%s~n~~B~GangRank: ~w~%d~n~~B~House: ~w~%s",Pname,GetPlayerMoney(playerid),PlayerInfo[playerid][pBank],GetPlayerSkin(playerid),Health, Armour,zone,PlayerInfo[playerid][pGangName],PlayerInfo[playerid][pGangLeader],PlayerInfo[playerid][pGangRank],locked);
Re: Help With Format -
Da' J' - 16.02.2012
Uhm, what it shows with that on the pGangLeader?
Re: Help With Format -
ReneG - 16.02.2012
Quote:
Originally Posted by Buzzbomb
Did i reach the max on this format string
Reason I ask Is Everything Shows But pGangLeader I cant figure it out the gangleader is In Text The gang Name Shows But not leader
pawn Код:
format(string,sizeof(string),"~B~Player Info~n~~B~Name: ~w~%s~n~~B~Money: ~w~%d~n~~B~Bank: ~w~%d~n~~B~Skin: ~W~%d~n~~B~Health: ~W~%.1f/100~n~~B~Armour: ~W~%.1f/100~n~~B~Area: ~W~%s~n~~B~Gang: ~w~%s~n~~B~GangLeader: ~w~%s~n~~B~GangRank: ~w~%d~n~~B~House: ~w~%s",Pname,GetPlayerMoney(playerid),PlayerInfo[playerid][pBank],GetPlayerSkin(playerid),Health, Armour,zone,PlayerInfo[playerid][pGangName],PlayerInfo[playerid][pGangLeader],PlayerInfo[playerid][pGangRank],locked);
|
It must be something wrong with the actual variable
Код:
PlayerInfo[playerid][pGangLeader]
Re: Help With Format -
MP2 - 16.02.2012
How big is string[]?
Re: Help With Format -
Buzzbomb - 17.02.2012
I Don't Know i don't get it i figured everything was right... Everything else shows on exit on rejoin and gmx restarts.. just Gangleader and Gangname aint showing.. the gangname shows when u create the gang but leader don't.. I have no clue what i'm doing wrong..
Re: Help With Format -
Buzzbomb - 17.02.2012
I think cause it aint formated i guess... I'm calling on a player Variable pGangName, And pGangLeader,
But nothing shows but it dont make any sense im calling on other variables.. well it formats numbers.. Fine ...
Maybe I'm not Doing it right you Think?
Re: Help With Format -
Darius_Fontaine - 17.02.2012
Wouldn't the gangleader need to be online?
Unless it's saved in a file some where
need more of the code...
Re: Help With Format -
Buzzbomb - 17.02.2012
Like What PlayerInfo[playerid][pGangLeader],PlayerInfo[playerid][pGangName]
There Format String is at the top
The Userfiles Are saved into a .ini file useraccounts And the Variables are stored Under
[pawn]
enum pInfo
{
pGangLeader,
pGangName[25],
}
new PlayerInfo[MAX_PLAYERS][pInfo];
Re: Help With Format -
Darius_Fontaine - 17.02.2012
i dont understand where it would get the name from unless it searches either players online or through the ini files