[Tutorial] Making a command "/skin [ID]" [ZCMD + SSCANF]
#7

Quote:
Originally Posted by Sublime
Посмотреть сообщение
Isn't there supposed to be a return at before SendClientMessage at the lines of if and else if?

pawn Код:
if(sscanf(params, "d", skinid)) return SendClientMessage(playerid, -1, "{ffff00}=USAGE=: {ffffff}/skin <skinid>");
    if(skinid < 0 || skinid > 299) return SendClientMessage(playerid, 0xFF000000, "{ff0000}=ERROR=: {ffffff}Choose a skin between 0 to 299!");
Oops, my bad! Fixed.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)