14.06.2009, 14:20
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;
}