#1

Hello Im making admin system small very small
errors:

(144) : error 027: invalid character constant
(144) : error 027: invalid character constant

144:
Код:
	case 0:// The first item listed
        	    {
	           ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ADMIN CMD-S","/ADMIN-SAAR\n/LOS-SANTOS\n/SAN-FIERRO\n/LAS-VENUTRAS","Loetud","Loetud");
	     return 1;
	    }


Код:
//Admin stuff to NuGa34 gamemode
//By pro_money_pro
#include <a_samp>

new hp;
new armour;
new cash;

public OnFilterScriptInit()
{
hp = CreatePickup(1240,5162.3203,-958.9101,14.3803,-1);
armour = CreatePickup(1242,5165.3838,-958.4927,14.3803,-1);
cash = CreatePickup(1212,5157.2412,-958.6690,14.3803,-1);

CreateObject(19355, 5152.46, -959.43, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5153.98, -960.95, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5154.22, -960.11, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5152.46, -956.25, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5152.46, -953.07, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5153.98, -956.69, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5153.98, -953.25, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5157.10, -960.95, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5160.26, -960.95, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5163.42, -960.94, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5166.55, -960.97, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5169.62, -960.95, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5172.80, -960.95, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5174.32, -959.37, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5174.32, -956.19, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5174.32, -953.03, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5174.34, -949.87, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5174.34, -946.71, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5174.34, -943.65, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5172.83, -942.15, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5169.71, -942.15, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5166.69, -942.16, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5163.57, -942.16, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5160.40, -942.16, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5157.25, -942.15, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5153.98, -960.95, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5154.11, -942.15, 15.22,   0.00, 0.00, 90.00);
CreateObject(19355, 5152.46, -949.87, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5152.46, -946.69, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5152.46, -943.55, 15.22,   0.00, 0.00, 0.00);
CreateObject(19355, 5153.98, -949.93, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5153.98, -946.49, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5153.98, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5157.12, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5160.28, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5163.36, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5166.48, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5169.62, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5172.80, -943.17, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5172.84, -946.62, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5172.84, -950.02, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5172.84, -953.36, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5172.84, -956.76, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5172.84, -960.08, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5169.84, -960.08, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5169.84, -956.70, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5169.84, -953.38, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5169.84, -949.92, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5169.84, -946.54, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5166.80, -946.54, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5163.70, -946.54, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5160.50, -946.60, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5160.50, -950.08, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5163.64, -950.08, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5166.80, -950.08, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5166.80, -953.48, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5163.66, -953.48, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5160.52, -953.48, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5157.22, -953.48, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5157.22, -950.02, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5157.22, -946.54, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5157.38, -960.13, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5160.58, -960.13, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5163.80, -960.13, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5166.88, -960.12, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5151.26, -960.07, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5156.84, -956.72, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5160.14, -956.80, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5163.45, -956.84, 16.89,   0.00, 90.00, 90.00);
CreateObject(19355, 5166.82, -956.76, 16.89,   0.00, 90.00, 90.00);
CreateObject(16782, 5152.91, -955.04, 15.74,   0.00, 0.00, 0.00);
CreateObject(19129, 5153.95, -960.51, 13.31,   0.00, 0.00, 0.00);
CreateObject(19129, 5153.88, -940.97, 13.31,   0.00, 0.00, 0.00);
CreateObject(19129, 5173.56, -940.99, 13.31,   0.00, 0.00, 0.00);
CreateObject(19129, 5173.86, -960.40, 13.31,   0.00, 0.00, 0.00);
CreateObject(19129, 5187.34, -960.47, 12.21,   0.00, 0.00, 0.00);
CreateObject(1781, 5152.22, -947.87, 14.10,   0.00, 0.00, 88.26);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if(strcmp("/admin-saar", cmdtext, true) == 0)
	{
	    if(IsPlayerAdmin(playerid))
	    SetPlayerPos(playerid,5165.6826,-950.7083,14.3803);
        SendClientMessage(playerid,0xDEEE20FF,"Saarelt lahkumiseks /los-santos,vхi muu linn");
	}

	if(strcmp("/los-santos", cmdtext, true)==0)
	{
		if(IsPlayerAdmin(playerid))
		SetPlayerPos(playerid,1546.5918,-1675.6838,13.5626);
	}
	
	    if(strcmp("/san-fierro", cmdtext, true)==0)
	{
	    if(IsPlayerAdmin(playerid))
		SetPlayerPos(playerid,-1980.1702,138.1457,27.6875);
	}

		if(strcmp("/las-venutras", cmdtext, true)==0)
	{
	    if(IsPlayerAdmin(playerid))
		SetPlayerPos(playerid,2027.2644,1007.9061,10.8203);
	}


		if(strcmp("/admin-abi", cmdtext, true)==0)
	{
		if(IsPlayerAdmin(playerid))
		ShowPlayerDialog(playerid,1, DIALOG_STYLE_LIST,"ADMINI ABI","Commandid\nAdmini reeglid\n","EDASI","SULE");
	}
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
    {
    switch(1)// If you only have one dialog, then this isn't required, but it's neater for when you implement more dialogs.
        {
		case 1:// Our dialog!
    	    {
           	switch(listitem)// Checking which listitem was selected
        	{
        	    case 0:// The first item listed
        	    {
				  ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ADMIN CMD-S","/ADMIN-SAAR\n/LOS-SANTOS\n/SAN-FIERRO\n/LAS-VENUTRAS","Loetud","Loetud");
				  return 1;
				}
        	    case 1: // The second item listed
        	    {
				  ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ADMIN REEGLID","Ei Banni ilma pхhjuseta\nEi kiusa\kicki\nEi spawni teistele autosid\nEi jaga rcon pw(kui on)","Loetud","Loetud");
				  return 1;
        	    }

         }
    	    }
	}
    }
    return 1;
}
Reply
#2

fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)