error 029: invalid expression, assumed zero & warning 215: expression has no effect
#1

Код:
CMD:changegatepass(playerid, params[])
{
	new string[128];
	if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /changegatepass [pass]");

	if(strlen(params) > 24)
	{
		SendClientMessageEx(playerid, COLOR_GRAD2, " Must be 24 characters or less! ");
		return 1;
	}
	new ownsgate;
	for(new i = 0; i < sizeof(GateInfo); i++)
	{
	/* error here*/      if((PlayerInfo[playerid][pPhousekey] == GateInfo[i][gHID])) && (PlayerInfo[playerid][pPhousekey2] == GateInfo[i][gHID]);
		{
			ownsgate = 1;
			format(string, sizeof(string), "Gate Password for gate %d changed to %s", i, params);
			format(GateInfo[i][gPassword], 24, "%s", params);
			SendClientMessageEx(playerid, COLOR_GRAD2, string);
			SaveGates();
		}
	}
	if(!ownsgate) SendClientMessageEx(playerid, COLOR_WHITE, "* You don't own a gate");
	return 1;

}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)