SetPlayer Object/Target ID problem
#4

This Line is Wrong it contains i but u just need u:
Код:
if (sscanf(params, "ui", targetid))
Код:
CMD:setobject(playerid, params[])
{
    if (AccountInfo[playerid][Aadmin] < 3) return SendClientMessage(playerid, COLOR_RED, "You can't access this command");
    new string[100];
    new tname[24];
    new targetid;
	if (sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setobject [playerid]");
	if (targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "Invalid Player!");
	GetPlayerName(targetid, tname, sizeof(tname));
	format(string, sizeof(string), "%s has been set an object", tname);
	SendClientMessageToAll(COLOR_YELLOW, string);
	SetPlayerAttachedObject(targetid, 2, 19142,  1, 0.1,  0.05, 0.0,  0.0,   0.0,   0.0);
	SetPlayerAttachedObject(targetid, 3, 19141,  2, 0.11, 0.0,  0.0,  0.0,   0.0,   0.0);
	SetPlayerAttachedObject(targetid, 4, 18637, 13, 0.35, 0.0,  0.0,  0.0,   0.0, 180.0);
	SetPlayerAttachedObject(targetid, 5, 18642,  7, 0.1,  0.0, -0.11, 0.0, -90.0,  90.0);
    return 1;
}
Reply


Messages In This Thread
nothing - by Samjoc18 - 13.12.2014, 01:21
Re: SetPlayer Object/Target ID problem - by astanalol - 13.12.2014, 01:55
Re: SetPlayer Object/Target ID problem - by Samjoc18 - 13.12.2014, 02:25
AW: SetPlayer Object/Target ID problem - by rospar - 13.12.2014, 02:36
Re: SetPlayer Object/Target ID problem - by Samjoc18 - 13.12.2014, 02:48
Re: SetPlayer Object/Target ID problem - by Samjoc18 - 14.12.2014, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)