Problem with GetPlayerPos
#2

Not sure but try:

Код:
dcmd_chp(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 5) {
                new Float:P[0],Float:P[1],Float:P[2];
		GetPlayerPos(playerid,P[0],P[1],P[2]); //HERE ARE ERRORS
		GetPlayerFacingAngle(playerid,P[3]);
		format(str,128,"You have created a Hidden Package! Use command /say or /announce to tell other to find this!");
		SendClientMessage(blue,str);
		if(Package != 0) DestroyPickup(Package);
		P[0] += (1.0 * floatsin(-P[3], degrees));
		P[1] += (1.0 * floatcos(-P[3], degrees));
		Package = CreatePickup(1210,P[0],P[1],P[2]-0.5,0.0,0.0,0.0);
	} else return SendClientMessage(playerid,red,"ERROR: Only Admins with level 5 and higher can use this command");
}
Reply


Messages In This Thread
Problem with GetPlayerPos - by Libra_PL - 27.08.2010, 13:27
Re: Problem with GetPlayerPos - by Dime - 27.08.2010, 13:30
Re: Problem with GetPlayerPos - by [XST]O_x - 27.08.2010, 13:30
Re: Problem with GetPlayerPos - by Libra_PL - 27.08.2010, 13:32
Re: Problem with GetPlayerPos - by Dime - 27.08.2010, 13:35

Forum Jump:


Users browsing this thread: 2 Guest(s)