fatal error 100: cannot read from file: "/scriptfiles/zones.pwn"
#6

C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : warning 215: expression has no effect
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : error 001: expected token: ";", but found "]"
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\Dave's Server\gamemodes\ls-cnr.pwn(1095) : fatal error 107: too many error messages on one line



Код:
public AdminOnPlayerText(playerid, text[])
{
	SendClientMessage(playerid, COLOR_WHITE, "Registration Complete. Welcome to the admin team! Type /ah to see a list of commands to use!");
	new accountpath[64];
	format(accountpath, 64, "/admins/%s.ini", PlayerName(playerid));
	dini_Create(accountpath);
	new buf[150];
	WP_Hash(buf, sizeof(buf), text);
	dini_Set(accountpath, "password", buf);
	dini_IntSet(accountpath, "pin", adpin[playerid]);
	format(buf, sizeof(buf), "ADMIN: Your admin login pin is: %d", adpin[playerid]);
	SendClientMessage(playerid, COLOR_GREEN, buf);
	PlayerInfo[playerid][Admin] = 1;        <-------- Line 1095
	PlayerInfo[playerid][AdminLogged] = true;
	makingadmin=-1;
	return 1;


I just added the .pwns to the GameMode..much easier lol.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)