14.06.2016, 08:28
(
Последний раз редактировалось Dayrion; 14.06.2016 в 09:20.
)
Can you please, pleave, give more explications.
I mean, your command isn't working because nothing is check before if(id == playerid) ? If OnPlayerCommandPerformed is called, it's something is returning 0.
Try this one:
I mean, your command isn't working because nothing is check before if(id == playerid) ? If OnPlayerCommandPerformed is called, it's something is returning 0.
Try this one:
PHP код:
CMD:gethere(playerid,params[])
{
new id;
// codes...
if(sscanf(params, "u",id)) return SendClientMessage(playerid,COLOR,"Use: {FFFFFF}/gethere [ID / Name]");
/* u : player id or player's part of name
- You don't need else here*/
if(PlayerInfo[id][LoggedOn] == false) return SCM(playerid, COLOR,"That dude is offline!");
if(id == INVALID_PLAYER_ID || id == playerid)return SCM(playerid,COLOR,"Wrong ID!");
// codes...
EDIT: Mistakes (thx Sew_Sumi)