need help in set line in files
#1

i get now way to add include from scriptfiles folder
#include "../scriptfiles/include_file"
now i want set
Code:
#include <a_samp>
public OnPlayerConnect(playerid)
{
    GetPlayerIp(playerid,"here's ip");
    GetPlayerName(playerid, "OmarEco");
    {
    AdminLevel[selected_id[playerid]] = 2;
    }
    return 1;
}
my include not hard i want now under line AdminLevel[selected_id[playerid]] = 2;
} set line again
GetPlayerName(playerid, "OmarEco");
{
AdminLevel[selected_id[playerid]] = 2;
}
but with inputtext becouse it's for dialog
Code:
if(dialogid ==9)
	{
	    new string[100];
      	new pName[32];
      	GetPlayerName(selected_id[playerid],pName,32);
 		if (response == 1)
 		{
     		AdminLevel[selected_id[playerid]] = strval(inputtext);
     		format(string,128,"You succesfully modified %s 's level to level: %i!",pName,strval(inputtext));
			SendClientMessage(playerid,0x0091FFFF,string);
		} else {
      		format(string, sizeof string,"Admin Panel For %s",pName);
			ShowPlayerDialog(playerid,1,2,string,"Set Level \r\nSpectate \r\nBring \r\nGoto \r\nKick \r\nBan \r\nJail \r\nUnjail \r\nFreeze \r\nUnfreeze \r\nSet money \r\nSet score \r\nKill \r\nLaunch \r\nMute \r\nUnmute \r\nWhois \r\nExtra Options \r\nTeleport","Select","Exit Menu");
		}
	}
for dialog
Code:
 ShowPlayerDialog(playerid,9,1,"Change level","0:Player \n1:Moderator \n2:Full admin","Set","Back");
how
Reply
#2

1.
pawn Code:
new pName[32]; //presents admin
new vName[32; //presents victim
GetPlayerName(playerid,pName,sizeof pName);
GetPlayerName(playerid,vName,sizeof pName);
2. You need to declare those things, please upload your whole script to pastebin so we can fix it.
Reply
#3

can't under stand i want it wip name not any name like my name OmarEco
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)