21.10.2015, 14:11
(
Последний раз редактировалось Counterafk; 22.10.2015 в 23:33.
)
solved original issue, got a new(irrelevant to this)issue, posted it as a reply.
Alright so I basicly want to make it so that when a person dies, a label appears on their position with players name, killers name along with the weapon used.
I guess what I need to know / what someone needs to explain to me is: where do I add playerid, killerid and reason? A little lost on the whole "symbol is assigned a value that is never used: "Deathlabel" aswell.
Also, I'm pretty sure theres something else in the code that I messed up with.
I think I understand what the problem is I just lack the experience/knowledge to set it up properly.
Thanks for taking your time!
Alright so I basicly want to make it so that when a person dies, a label appears on their position with players name, killers name along with the weapon used.
Код:
new Text3D:Deathlabel[MAX_PLAYERS]; //global public OnPlayerDeath(playerid, killerid, reason) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid,x,y,z); Deathlabel = Create3DTextLabel("%s's body.\nKilled by %s\nwith a %s.", -1, x, y, z, 40.0, 0, 0); // SetTimerEx("RemoveDeathlabel",8000,0,"i",playerid); return 1; }
Код:
GW.pwn(450) : error 035: argument type mismatch (argument 1) GW.pwn(495) : error 033: array must be indexed (variable "Deathlabel") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
Also, I'm pretty sure theres something else in the code that I messed up with.
I think I understand what the problem is I just lack the experience/knowledge to set it up properly.
Thanks for taking your time!