Help else error
#1

help!
error 029: invalid expression, assumed zero
warning 217: loose indentation
warning 217: loose indentation

Код:
if(strcmp(cmd, "/check", true) == 0)
	{
		if(!Admin(playerid, 1)) return 1;

		if(params < 2)
			return Msg(playerid, "Hasznбlat: /check [jбtйkos] [stats / zseb / penztarca]");

        giveplayerid = ReturnUser(param[1]);
	    if(giveplayerid == INVALID_PLAYER_ID)
			return Msg(playerid, "Nincs ilyen jбtйkos!");

		if(egyezik(param[2], "stats"))
			ShowStats(playerid, giveplayerid);
		else
			ShowZseb(playerid, giveplayerid);
		else //<<<<error 
			ShowPenz(playerid, giveplayerid); //<<<<warning
		return 1; //<<<warning
	}
Reply
#2

pawn Код:
if(strcmp(cmd, "/check", true) == 0)
    {
        if(!Admin(playerid, 1)) return 1;

        if(params < 2)
            return Msg(playerid, "Hasznбlat: /check [jбtйkos] [stats / zseb / penztarca]");

        giveplayerid = ReturnUser(param[1]);
        if(giveplayerid == INVALID_PLAYER_ID)
            return Msg(playerid, "Nincs ilyen jбtйkos!");

        if(egyezik(param[2], "stats"))
            ShowStats(playerid, giveplayerid);
        else if(egyezik(param[2], "zseb"))
            ShowZseb(playerid, giveplayerid);
        else //<<<<error
            ShowPenz(playerid, giveplayerid); //<<<<warning
        return 1; //<<<warning
    }
Reply
#3

Thanks Matess! ++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)