21.03.2011, 20:02
okey scripters
so Im starting to learn zcmd and sscanf
and I got this command
okey so when i use /b2 it doesnt return me SendClientMessage(playerid,blablablalbl)
it returns me SendClientMessage(id, 0x0259EAAA, "hey");
okey
and not only that it doesnt work
because of this stupid thing
all of the commands in my server arent working !
why ?
so Im starting to learn zcmd and sscanf
and I got this command
Код:
COMMAND:b2(playerid, params[]) { if(PlayerInfo[playerid][pAdminLevel] > 1) { new id; if(sscanf(params,"u",id)) { if(IsPlayerConnected(id)) { SendClientMessage(id, 0x0259EAAA, "hey"); return 1; } else return SendClientMessage(playerid, 0x0259EAAA, "Player is not connected"); } else return SendClientMessage(playerid, 0x0259EAAA, "USAGE: /b2 [PlayerId/PartOfName]"); } else return SendClientMessage(playerid, 0x0259EAAA, "You are not admin"); }
it returns me SendClientMessage(id, 0x0259EAAA, "hey");
okey
and not only that it doesnt work
because of this stupid thing
all of the commands in my server arent working !
why ?