Need help on making /trace command
#5

It's not hard to see that there is a bracket missing.
pawn Код:
if(strcmp(cmd, "/trace", true) == 0)
{
if(PlayerInfo[playerid][pLeader] == 8 || PlayerInfo[playerid][pMember] == 8)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClienMessage(playerid, COLOR_GREY, "USAGE: /trace [playerid or part of name");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
new Float:rpx,Float:rpy,Float:rpz;
GetPlayerPos(giveplayerid, rpx,rpy,rpz);
SetPlayerCheckPoint(playerid, rpx,rpy,rpz 3.0);
SendClientMessage(playerid, COLOR_BLUE, "Marker on map has been set");
}
else
{
format(string, sizeof(string), "    %d is not an active player.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}
Reply


Messages In This Thread
Need help on making /trace command - by Ghorian - 14.06.2009, 13:24
Re: Need help on making /trace command - by Grim_ - 14.06.2009, 13:42
Re: Need help on making /trace command - by Ghorian - 14.06.2009, 14:02
Re: Need help on making /trace command - by Grim_ - 14.06.2009, 14:14
Re: Need help on making /trace command - by Correlli - 14.06.2009, 14:20

Forum Jump:


Users browsing this thread: 1 Guest(s)