If PlayerName exist
#2

Add this check in your command.

pawn Код:
new string[MAX_PLAYER_NAME];
GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "%s.ini", PlayerName(playerid));
if(dini_Exists(string)) // This will check if the dini exists. returns true if exists.
{
//
// Your code here
}
else
{
//Use your code here if no dini exists.
}
Reply


Messages In This Thread
If PlayerName exist - by JaKe Elite - 13.05.2012, 02:08
Re: If PlayerName exist - by Ballu Miaa - 13.05.2012, 03:39
Re: If PlayerName exist - by JaKe Elite - 13.05.2012, 03:58
Re: If PlayerName exist - by Ballu Miaa - 13.05.2012, 04:03
Re: If PlayerName exist - by JaKe Elite - 13.05.2012, 04:07
Re: If PlayerName exist - by Ballu Miaa - 13.05.2012, 04:08
Re: If PlayerName exist - by JaKe Elite - 13.05.2012, 04:15
Re: If PlayerName exist - by Ballu Miaa - 13.05.2012, 04:17
Re: If PlayerName exist - by JaKe Elite - 13.05.2012, 04:24
Re: If PlayerName exist - by Ballu Miaa - 13.05.2012, 04:31

Forum Jump:


Users browsing this thread: 1 Guest(s)