SA-MP Forums Archive
Loading data - 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: Loading data (/showthread.php?tid=603595)



Loading data - FinStar - 25.03.2016

Hi I have a problem with displaying information from players with "iphub.info" the script that I used the fashion "Scavenge Survive Southclaw Southclaw" always when I write / checkex [playerid] is a blank value (photo below), you do not know where the problem may be ?

It will not be a problem somewhere in retrieving data PlayerCountryData?

Original script from S&S By Southclaw https://github.com/Southclaw/Scaveng...er/country.pwn

http://pastebin.com/raw/BtejMT3g (Include base.pwn)

The entire code

Код:
#include <a_samp>
#include <base.pwn>
#include <sscanf2>
#include <zcmd>



CMD:checkex(playerid, params[])
{
new targetid, dat[255], checkexString[255], IpEx[20];
if(sscanf(params,"u", targetid)) return SendClientMessage(playerid, -1,"SYNTAXE: /checkex [playerid]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1,"Didn't connected");
GetPlayerIp(playerid,IpEx,sizeof(IpEx));
format(checkexString,sizeof(checkexString), "%s ( %i ) %s",ReturnPlayerName(targetid), targetid, IpEx);
GetPlayerCountryDataAsString(targetid, dat);
ShowPlayerDialog(playerid, 4874, DIALOG_STYLE_MSGBOX, checkexString, dat, "Close", "");
return 1;
}