Need Help! Please Help Me!
#1

I Paste Registration Script And This's All Plugin In My Gamemode.
Код:
#define FILTERSCRIPT
#define DIALOGID 2000


#include <a_samp>
#include <file>
#include <dini>
#include <dudb>
#include <colors>
#include <core>
#include <float>
#include <string>
#include <time>
#include <datagram>
#include <a_players>
#include <a_vehicles>
#include <a_objects>
#include <a_sampdb>
#include <ladmin>
#include <YSI\y_ini>
#include <zcmd>
#include <foreach>

#if defined FILTERSCRIPT

//________________________________//
//__________TEAM DEFINES__________//
#define TEAM_AMERICA 0//__________//
#define TEAM_UK 1//______________//
//_______________________________//
#define AMERICASPAWN      "1522.6503,-806.6635,72.1700"
#define UKSPAWN           "1279.3276,-778.4965,95.9663"
#define AMERICACOLOR      "COLOR_BLUE"
#define UKCOLOR           "COLOR_RED"
#define PATH "/Users/%s.ini"
#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"
#define COL_LIGHTBLUE "{00CED1}"
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_YELLOW2 0xF5DEB3AA

#define MAX_HOUSES 200

enum pInfo
{
    pPass,
    pLevel,
    pSex,
    pAge,
    pOrigin,
    pPlace,
    pCash,
	pExp,
    pAdmin,
    pNumber,
    pTester,
    pWarns,
	pSelected,
	pMuted,
	pMuteTime,
    pFirstJoined,
    pModel,
    pVip,
    pSpawn,
    pLocked,
    pDriveLic,
};

// New
new reg2[ ] = "Sanam Daiwyebdet Tamashs, Gaecanit Wesebs!\nRom Iyos Serveri Daculi.\n",
    reg3[ ] = "•Chetis Gamoyeneba Akrdzalulia! Tu Mainc Gamoiyenebt, Dagedebat {F81414}BANI!\n",
    reg4[ ] = "•Serveris Mtavari  {F81414}Adminia: {FFFFFF}Mr_TwisTa.\n",
    reg5[ ] = "•Tu Dawert Ucenzuro Sityvas, Dagedebat {F81414}Mute An kick.\n",
    reg7[ ] = "•Madlobt Rom Shemodit Serverze!\n",
    reg8[ ] = "\n\n{F81414} *BIG CITY LIFE* - DEATHMACH {F3FF02}Warmatebul Dges Gisurvebt!";
new PlayerInfo[MAX_PLAYERS][pInfo];
//==============================[SYMBOLS MAX_PLAYERS]===========================
new gPlayerLogged[MAX_PLAYERS];
new gPlayerLogTries[MAX_PLAYERS];
new gPlayerRegStep[MAX_PLAYERS];
//--------------------------------------------------------------------------------------------
stock UserPath(playerid)
{
    new string[128],playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid,playername,sizeof(playername));
    format(string,sizeof(string),PATH,playername);
    return string;
} 
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_Int("Password",PlayerInfo[playerid][pPass]);
    INI_Int("Level",PlayerInfo[playerid][pLevel]);
    INI_Int("Cash",PlayerInfo[playerid][pCash]);
    INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
    INI_Int("Age",PlayerInfo[playerid][pAge]);
    INI_Int("Origin",PlayerInfo[playerid][pOrigin]);
    INI_Int("Sex",PlayerInfo[playerid][pSex]);
    INI_Int("Model",PlayerInfo[playerid][pModel]);
    INI_Int("DriveLic",PlayerInfo[playerid][pDriveLic]);
	INI_Int("Place",PlayerInfo[playerid][pPlace]);
	INI_Int("Exp",PlayerInfo[playerid][pExp]);
	INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
	INI_Int("Number",PlayerInfo[playerid][pNumber]);
	INI_Int("Tester",PlayerInfo[playerid][pTester]);
	INI_Int("Warns",PlayerInfo[playerid][pWarns]);
	INI_Int("Selected",PlayerInfo[playerid][pSelected]);
	INI_Int("Muted",PlayerInfo[playerid][pMuted]);
	INI_Int("MuteTime",PlayerInfo[playerid][pMuteTime]);
	INI_Int("FirstJoined",PlayerInfo[playerid][pFirstJoined]);
	INI_Int("Vip",PlayerInfo[playerid][pVip]);
	INI_Int("Spawn",PlayerInfo[playerid][pSpawn]);
	INI_Int("Locked",PlayerInfo[playerid][pLocked]);
    return 1;
}

//=====================================[FORWARDS]===============================
forward SetPlayerSpawn(playerid);
forward ShowStats(playerid,targetid);
forward Payday();
forward SyncTime();
forward SetPlayerUnMute();
forward ScoreUpdate();
forward FixHour(hour);
forward newbietimer();
forward Unfreeze(playerid);
forward SendAdminMessage(color, string[]);
forward ABroadCast(color,const string[],level);
forward TBroadCast(color,const string[], level);
forward SendTesterMessage(color, string[]);
forward RACtime(playerid);
forward ClearChatboxToAll(playerid, lines);
forward ClearChatboxToAll2(playerid, lines);
forward OOCOff(color,const string[]);
forward ProxDetectorS(Float:radi, playerid, targetid);
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward split(const strsrc[], strdest[][], delimiter);
forward SetOriginalColor(playerid);
//==================================DEALERSHIP==================================
forward MainTimer();
forward SaveTimer();
forward StopAlarm(vehicleid);
//===================================ENGINE=====================================
Код:
public OnPlayerConnect(playerid)
{
	new string[128];
	new plname[MAX_PLAYER_NAME];
	GetPlayerName(playerid, plname, sizeof(plname));
	PlayerInfo[playerid][pLevel] = 0;
	PlayerInfo[playerid][pCash] = 0;
	PlayerInfo[playerid][pVip] = 0;
	PlayerInfo[playerid][pAdmin] = 0;
	PlayerInfo[playerid][pTester] = 0;
	PlayerInfo[playerid][pSpawn] = 0;
	PlayerInfo[playerid][pSex] = 0;
	PlayerInfo[playerid][pAge] = 0;
	PlayerInfo[playerid][pOrigin] = 0;
	PlayerInfo[playerid][pModel] = 23;
	PlayerInfo[playerid][pLocked] = 0;
	PlayerInfo[playerid][pExp] = 0;
	PlayerInfo[playerid][pWarns] = 0;
	PlayerInfo[playerid][pMuted] = 0;
	PlayerInfo[playerid][pMuteTime] = 0;
	format(string, sizeof(string), "/Users/%s.ini", plname);
	new DialogString[1024];
  	format(DialogString, sizeof DialogString, "%s%s%s%s%s%s%s%s", reg2, reg3, reg4, reg5, reg7, reg8);
	ShowPlayerDialog(playerid,1234, DIALOG_STYLE_MSGBOX,"BCL-DM", DialogString,"Shemdeg","");
 	GameTextForPlayer(playerid,"~w~~h~Mogesalmebit!",3200,1);
 	//--------------------------------------------------------------------------------------------------------------------------------------------
	new str[256], condisname[MAX_PLAYER_NAME];
    new ip[MAX_PLAYER_NAME];
	GetPlayerName(playerid, condisname, sizeof(condisname));
    GetPlayerIp(playerid, ip, sizeof(ip));
	format(str, sizeof(str), "** {DC143C} %s (ID:%d){FFFFFF} Shemovida Serverze !", condisname, playerid);
	SendClientMessageToAll(0xFFFFFFFF, str);
	//--------------------------------------------------------------------------------------------------------------------------------------------
	//===================================[MAPICONS]=================================
	SetPlayerMapIcon(playerid, 1, 597.559509, -1249.448608, 18.307994, 52, 1);
	SetPlayerMapIcon(playerid, 2, 529.425354, -1293.921752, 17.242187, 55, 1);
	SetPlayerMapIcon(playerid, 3, 2127.629394, -1151.914794, 23.988607, 55, 1);
	SetPlayerMapIcon(playerid, 4, 1612.057739, -1892.647338, 13.477849, 55, 1);
	SetPlayerMapIcon(playerid, 5, 2102.669677, -1807.184570, 13.494323, 29, 1);
	SetPlayerMapIcon(playerid, 6, 2218.005126, -1168.782226, 25.655542, 31, 1);
	SetPlayerMapIcon(playerid, 7, 2229.195556, -1722.237670, 13.492409, 54, 1);
	SetPlayerMapIcon(playerid, 8, 2176.778076, -1808.995361, 13.314004, 31, 1);
	SetPlayerMapIcon(playerid, 9, 1552.876464, -1675.246948, 15.951610, 30, 1);
	SetPlayerMapIcon(playerid, 10, 1481.554321, -1769.964111, 18.725217, 32, 1);
	SetPlayerMapIcon(playerid, 11, 1931.436523, -1775.963378, 13.387728, 17, 1);
	SetPlayerMapIcon(playerid, 12, 1832.088745, -1842.122924, 13.516613, 17, 1);
	SetPlayerMapIcon(playerid, 13, 1834.615966, -1682.229736, 13.356820, 49, 1);
	SetPlayerMapIcon(playerid, 14, 1804.492553, -1574.485961, 13.355642, 30, 1);
	SetPlayerMapIcon(playerid, 15, 330.078857, -1518.715820, 35.798629, 30, 1);
	SetPlayerMapIcon(playerid, 16, 212.736221, 1903.069580, 18.079984, 30, 1);
	SetPlayerMapIcon(playerid, 17, 1383.189453, 465.504455, 20.192749, 17, 1);
	SetPlayerMapIcon(playerid, 18, 1365.520019, 249.286941, 19.257095, 29, 1);
	SetPlayerMapIcon(playerid, 19, 1315.100585, -899.391479, 39.282302, 17, 1);
	SetPlayerMapIcon(playerid, 20, 2034.685791, -1404.085327, 16.970668, 22, 1);
	SetPlayerMapIcon(playerid, 21, 1412.8313, -1700.3066, 13.5395, 55, 1);
	return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1234)
	{
		if(!response)  return Kick(playerid);
		if(response)
		{
			if(fexist(UserPath(playerid)))
			{
				INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
				ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,""COL_WHITE"Shesvla",""COL_WHITE"Daweret Tqveni Paroli.","Shesvla","Gamosvla");
			}
			else
			{
				ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT,""COL_WHITE"Registracia",""COL_WHITE"Daweret Sasurveli Paroli.","Registracia","Gamosvla");
			}
		}
	}
	if(dialogid == 1)
	{
		if (!response) return Kick(playerid);
		if(response)
		{
			if(!strlen(inputtext)) return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, ""COL_WHITE"Registracia",""COL_RED"Tqven Gaqvt Araswori Paroli.\n"COL_WHITE"Daweret Sxva Paroli.","Registracia","Gamosvla");
			new INI:File = INI_Open(UserPath(playerid));
			INI_SetTag(File,"data");
			INI_WriteInt(File,"Password",udb_hash(inputtext));
			INI_WriteInt(File, "Level",PlayerInfo[playerid][pLevel] = 1);
			INI_WriteInt(File, "Money",PlayerInfo[playerid][pCash] = 0);
			INI_WriteInt(File, "Admin",PlayerInfo[playerid][pAdmin] = 0);
			INI_WriteInt(File, "Tester",PlayerInfo[playerid][pTester] = 0);
			INI_WriteInt(File, "Vip", PlayerInfo[playerid][pVip] = 0);
			INI_WriteInt(File, "Spawn", PlayerInfo[playerid][pSpawn] = 1);
			INI_WriteInt(File, "Model", PlayerInfo[playerid][pModel] = 23);
			INI_WriteInt(File, "Locked", PlayerInfo[playerid][pLocked] = 0);
			INI_WriteInt(File, "FirstJoined", PlayerInfo[playerid][pFirstJoined] = 0);
			INI_WriteInt(File, "Continent", PlayerInfo[playerid][pPlace] = 0);
			INI_WriteInt(File, "Sex", PlayerInfo[playerid][pSex] = 0);
			INI_WriteInt(File, "Selected", PlayerInfo[playerid][pSelected] = 1);
			INI_WriteInt(File, "Age", PlayerInfo[playerid][pAge] = 0);
			INI_WriteInt(File, "Origin", PlayerInfo[playerid][pOrigin] = 0);
			INI_WriteInt(File, "Respect", PlayerInfo[playerid][pExp] = 0);
			INI_WriteInt(File, "Warns", PlayerInfo[playerid][pWarns] = 0);
			INI_WriteInt(File, "Muted", PlayerInfo[playerid][pMuted] = 0);
			INI_WriteInt(File, "MuteTime", PlayerInfo[playerid][pMuteTime] = 0);
   			new rp = 100000 + random(899999);
			INI_WriteInt(File, "Ph", PlayerInfo[playerid][pNumber] = rp);
			INI_WriteInt(File, "DriveLic",PlayerInfo[playerid][pDriveLic] = 0);
			INI_Close(File);
			SpawnPlayer(playerid);
			SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
		}
	}
	if(dialogid == 2)
	{
		if(!response ) return Kick (playerid);
		if(response)
		{
			if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
			{
				INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
				SpawnPlayer(playerid);
				gPlayerLogged[playerid] = 1;
			}
			else
			{
				ShowPlayerDialog(playerid, 2, DIALOG_STYLE_INPUT,""COL_WHITE"Shesvla",""COL_RED"Miutitet Swori Paroli!.\n"COL_WHITE"Daweret Tqveni Paroli","Shesvla","Gamosvla");
				gPlayerLogTries[playerid] += 1;
				if(gPlayerLogTries[playerid] == 3)
				{
					Kick(playerid);
				}
			}
		}
	}
	if(dialogid == 155)
		{
		    if(response)
		    {
   				if (listitem == 0)
				{
					PlayerInfo[playerid][pSex] = 1;
					SendClientMessage(playerid, COLOR_YELLOW2,"Kargi, Tqven Xart Kaci");
					ShowPlayerDialog(playerid,156,DIALOG_STYLE_INPUT,"Wlivanoba","Ramdeni Wlis Xar?","Shemdeg","Gamosvla");
   				}
				else if (listitem == 1)
				{
					PlayerInfo[playerid][pSex] = 2;
					SendClientMessage(playerid, COLOR_YELLOW2,"Kargi. Tqven Xart Qali");
					ShowPlayerDialog(playerid,156,DIALOG_STYLE_INPUT,"Wlivanoba","Ramdeni Wlis Xar?","Shemdeg","Gamosvla");
                }
			}
			else
			{
			    Kick(playerid);
			}
		}
	if(dialogid == 156)
	{
	    if(response)
	    {
	        PlayerInfo[playerid][pAge] = strval(inputtext);
        	new string[64];
			format(string, sizeof(string),"Kargi Shen Xar %s Wlis", inputtext);
			SendClientMessage(playerid, COLOR_YELLOW2, string);
			new sexthings[] = " Saqartvelo \n America \n Ruseti";
			if(strval(inputtext) <= 15)
			{
				SendClientMessage(playerid, COLOR_WHITE, "SERVERI: Serverze Sheidzleba Mxolod 16+ Shemosvla. Shemodit Tavidan.");
				Kick(playerid);
				return 1;


			}
			if(strval(inputtext) >= 60)
			{
				SendClientMessage(playerid, COLOR_WHITE, "SERVERI: Araswori Wlivanoba. Tqven Unda Dawerot Tqveni Namdvili Wlivanoba.");
				ShowPlayerDialog(playerid,156,DIALOG_STYLE_INPUT,"Wlivanoba","Ramdeni Wlis Xar?","Shemdeg","Gamosvla");
				return 1;


			}
			ShowPlayerDialog(playerid,157,DIALOG_STYLE_LIST,"Saidan Xar?",sexthings,"Mititeba","Gamosvla");
		}
		else
		{
		    Kick(playerid);
		}
	}
	if(dialogid == 157)
	{
	    if(response)
	    {
   			if (listitem == 0)
			{
			    PlayerInfo[playerid][pPlace] = 1;
			    SendClientMessage(playerid, COLOR_YELLOW2, "Kargi Shen Xar Saqartvelodan.");
				gPlayerRegStep[playerid] = 0;
				PlayerInfo[playerid][pSelected] = 1;
   			}
			else if (listitem == 1)
			{
			   	PlayerInfo[playerid][pPlace] = 2;
			    SendClientMessage(playerid, COLOR_YELLOW2, "Kargi Shen Xar Amerikidan.");
				gPlayerRegStep[playerid] = 0;
				PlayerInfo[playerid][pSelected] = 1;
			}
			else if (listitem == 2)
			{
			    PlayerInfo[playerid][pPlace] = 3;
			    SendClientMessage(playerid, COLOR_YELLOW2, "Kargi Shen Xar Rusetidan.");
				gPlayerRegStep[playerid] = 0;
				PlayerInfo[playerid][pSelected] = 1;
			}
			gPlayerLogged[playerid] = 1;
			new packthings[] = " 2 LVL, 4 Respecti Da 1000 Dolari \n 1 LVL Da 4000 Dolari";
			ShowPlayerDialog(playerid,158,DIALOG_STYLE_LIST,"Sacuqari Airchiet Tqven Tviton!",packthings,"Mititeba","Gamosvla");
		}
		else
		{
		    Kick(playerid);
		}
	}
	if(dialogid == 158)
	{
	    if(response)
	    {
   			if (listitem == 0)
			{
			    new DialogString[1024];
    			format(DialogString, sizeof DialogString, "2 LVL \n 4 Respecti, \n Da 1000$");
			    ShowPlayerDialog(playerid,159,DIALOG_STYLE_MSGBOX,"2 LVL, 4 Respecti Da 1000 Dolari", DialogString,"Migeba","Ukan");
			}
			else if (listitem == 1)
			{
			    new DialogString[1024];
    			format(DialogString, sizeof DialogString, "Level 1 \n 4000$");
			    ShowPlayerDialog(playerid,160,DIALOG_STYLE_MSGBOX,"1 LVL Da 4000 Dolari", DialogString,"Migeba","Ukan");
			}
		}
		else
		{
		    Kick(playerid);
		}
	}
	if(dialogid == 159)
	{
	    if(response)
	    {
            new playerexp = PlayerInfo[playerid][pExp];
            PlayerInfo[playerid][pExp] = playerexp + 4;
            new playerlvl = PlayerInfo[playerid][pLevel];
            PlayerInfo[playerid][pLevel] = playerlvl + 1;
            GivePlayerMoney(playerid, 1000);
            TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, COLOR_YELLOW2,"Tu  Dagchirdat Daxmareba, Daweret: /Daxmareba");
		}
		else
		{
		        new DialogString[1024];
    			format(DialogString, sizeof DialogString, "2 LVL \n 4 Respecti, \n Da 1000$");
			    ShowPlayerDialog(playerid,159,DIALOG_STYLE_MSGBOX,"2 LVL, 4 Respecti Da 1000 Dolari", DialogString,"Migeba","Ukan");
		}
	}
	if(dialogid == 160)
	{
	    if(response)
	    {
            GivePlayerMoney(playerid, 4000);
            TogglePlayerControllable(playerid, 1);
            SendClientMessage(playerid, COLOR_YELLOW2,"Tu  Dagchirdat Daxmareba, Daweret: /Daxmareba");
		}
		else
		{
			    new DialogString[1024];
    			format(DialogString, sizeof DialogString, "Level 1 \n 4000$");
			    ShowPlayerDialog(playerid,160,DIALOG_STYLE_MSGBOX,"1 LVL Da 4000 Dolari", DialogString,"Migeba","Ukan");
		}
	}
	return 1;
}
On Saving Time:
Код:
D:\Programs\BCL-DM Official AMX\gamemodes\BCL-DM.pwn(2828) : warning 203: symbol is never used: "ret_memcpy"
D:\Programs\BCL-DM Official AMX\gamemodes\BCL-DM.pwn(2828) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
But There Is Small Problem. When I Join Game, This All Is Not!
Please Help Me!
Reply
#2

Do you have any other dialogs with the same number as 2000?
Reply
#3

Quote:
Originally Posted by NoahF
Посмотреть сообщение
Do you have any other dialogs with the same number as 2000?
no
Reply
#4

wrong section post here..

http://forum.sa-mp.com/forumdisplay.php?f=12
Reply
#5

You should have posted this in click me

Post there you will ofc get help
Reply
#6

D:\Programs\BCL-DM Official AMX\gamemodes\BCL-DM.pwn(282 : warning 203: symbol is never used: "ret_memcpy"
D:\Programs\BCL-DM Official AMX\gamemodes\BCL-DM.pwn(282 : warning 203: symbol is never used: "strtok"

Just delete it.. It's not used.. ! (strtok and ret_memcpy)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)