Help else error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help else error (
/showthread.php?tid=500879)
Help else error -
Slicebook - 15.03.2014
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
}
Re: Help else error -
Matess - 15.03.2014
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
}
Re: Help else error -
Slicebook - 15.03.2014
Thanks Matess! ++