Can Anyone Help Me - 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: Can Anyone Help Me (
/showthread.php?tid=596211)
Can Anyone Help Me -
Zorono - 14.12.2015
Removed
Re: Can Anyone Help Me -
sidney123 - 14.12.2015
Try to use %d instead of %s. %s shows a string while the values given are integers I guess? If you want to display numbers, use %d.
Re: Can Anyone Help Me -
Zorono - 14.12.2015
Quote:
Originally Posted by sidney123
Try to use %d instead of %s. %s shows a string while the values given are integers I guess? If you want to display numbers, use %d.
|
Can You Show Me Code ? Please
Re: Can Anyone Help Me -
Assassin007 - 14.12.2015
Quote:
Originally Posted by Zorono
Can You Show Me Code ? Please
|
S- is for the string but you need integer
see this --
https://sampwiki.blast.hk/wiki/Format
Код:
CMD:info(playerid,params[]){
new string[532];
format(string, sizeof(string), "{66FFFF}>>>BRTDM~RP™-PInfo<<<","GRP Rank: %d\n BA Ranks: %d\n B Rank: %d \n TPK Rank: %d \n GSF Rank: %d \n GT Rank: %d \n BT Rank: %d \n BR Rank: %d \n xEF Rank: %d \n BMF Rank: %d \n RFC Rank: %d \n KOD Rank: %d \n AG Rank: %d \n COP Rank: %d \n B2K Rank: %d \n Admin Level: %d",GRPLevel,BALevel,BLevel,TPKLevel,GSFLevel,GTLevel,BTLevel,BRLevel,XEFLevel,BMFLevel,RFCLevel,KODLevel,AGLevel,COPLevel,B2KLevel,Level);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, string, "OK", "Cancel");
return 1;
Re: Can Anyone Help Me -
Elegy - 14.12.2015
Yes,Use %d
, check ur pm in fb
and make
PHP код:
PlayerInfo[player1][YourLevel],
Not
AGLevel,RFCLevel,BlaLevel,
see this.
https://sampforum.blast.hk/showthread.php?tid=596196
Re: Can Anyone Help Me -
yvoms - 14.12.2015
your not even checking the playerid.
GRPLevel(playerid),BALevel(playerid),BLevel(player id)
Re: Can Anyone Help Me -
Zorono - 14.12.2015
ok ty all i will try with this codes you all gave me it