stock warning
#3

You can either use:
pawn Код:
if(!response)
{
    KickWhenNotRegister(playerid);
    return 1;
}
pawn Код:
if(!response)
{
    KickWhenNotLoggedIn(playerid);
    return 1;
}
since it does not return any value or:
pawn Код:
stock KickWhenNotRegister(playerid)
{
    SendClientMessage(playerid, -1, "{ff0000}=KICKED=: {ffffff}To play here, you must register an account here! Sorry!");
    SetTimerEx("KickWithMsg", 1000, 0, "d", playerid);
    return 1;
}

stock KickWhenNotLoggedIn(playerid)
{
    SendClientMessage(playerid, -1, "{ff0000}=KICKED=: {ffffff}To continue your session, it's necesscary to login to your account! Sorry!");
    SetTimerEx("KickWithMsg", 1000, 0, "d", playerid);
    return 1;
}
with:
pawn Код:
if(!response) return KickWhenNotRegister(playerid);
if(!response) return KickWhenNotLoggedIn(playerid);
Reply


Messages In This Thread
stock warning - by LeeXian99 - 03.11.2013, 12:55
Re: stock warning - by DanishHaq - 03.11.2013, 12:56
Re: stock warning - by Konstantinos - 03.11.2013, 12:58
Re: stock warning - by LeeXian99 - 03.11.2013, 13:03

Forum Jump:


Users browsing this thread: 2 Guest(s)