21.02.2014, 11:09
eh, i kinda figured out how to "get" the Kill-message to show, but i get an error
..
Script:
I tried doing this:
But then i got this error:
EDIT:
that didn't work out either e__e
:c
Код:
test2.pwn(2647) : error 035: argument type mismatch (argument 1)
Script:
pawn Код:
/*OnPlayerDeath*/
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.5, MPos[0], MPos[1], MPos[2]))
{
if(SpawnedBy{ i }) //The minigun spawner, gets set at "SpawnedBy"!!!
{
new name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
SendDeathMessage(name, playerid, 38); //Line 2647!!
return 1;
}
}
}
}
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.5, MPos[0], MPos[1], MPos[2]))
{
if(SpawnedBy{ i })
{
GetPlayerName(i, killerid, 24); //2645
SendDeathMessage(killerid, playerid, 38);
return 1;
}
}
}
}
Код:
test2.pwn(2645) : error 035: argument type mismatch (argument 2)
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 10.5, MPos[0], MPos[1], MPos[2]))
{
if(SpawnedBy{ i })
{
killerid = new name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
SendDeathMessage(name, playerid, 38);
return 1;
}
}
}
}
:c