Help please.
#9

Quote:
Originally Posted by Zezombia
Could I see that code please? It's probably something to do with creating the file, not checking it.
I haven't written the code yet, im trying to solve the checking for the file & displaying the message problem.. D:

but here you go:

pawn Code:
/*============================================
Admin Application IN-GAME FilterScript!    |
Made by Rafay!                               |
If you use it, Please give me some credits   |
                                             |
==============================================*/


//[Includes]
#include <a_samp>
#include <dudb>
#include <dini>

#pragma unused ret_memcpy

//[Defines]
#define green 0x33AA33AA
#define red 0xAA3333AA
#define blue 0x0000BBAA

public OnFilterScriptInit()
{
    print("\n--------------------------------------");
    print(" Admin Application IN-GAME Loaded!");
    print("--------------------------------------\n");
    return 1;
}

public OnPlayerConnect(playerid)
{
  new file[256], pname[MAX_PLAYER_NAME];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "/applies/%s.ini", pname);
  if(!dini_Exists(file)) return SendClientMessage(playerid, red, "You have already made your application!");
    if (!fexist(file)) return SendClientMessage(playerid,green,"Wanna apply for Administrator ? Type /aa for a IN-GAME Admin Apply!!");
  return 1;
}
Reply


Messages In This Thread
Help please. - by rafay - 04.01.2009, 04:57
Re: Help please. - by Zezombia - 04.01.2009, 05:02
Re: Help please. - by rafay - 04.01.2009, 05:08
Re: Help please. - by Zezombia - 04.01.2009, 05:11
Re: Help please. - by rafay - 04.01.2009, 05:16
Re: Help please. - by Zezombia - 04.01.2009, 05:18
Re: Help please. - by rafay - 04.01.2009, 05:19
Re: Help please. - by Zezombia - 04.01.2009, 05:21
Re: Help please. - by rafay - 04.01.2009, 05:23
Re: Help please. - by rafay - 04.01.2009, 05:27
Re: Help please. - by Zezombia - 04.01.2009, 05:36
Re: Help please. - by rafay - 04.01.2009, 05:36
Re: Help please. - by rafay - 04.01.2009, 06:10

Forum Jump:


Users browsing this thread: 1 Guest(s)