would need just lil help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: would need just lil help (
/showthread.php?tid=66089)
would need just lil help -
Extrak - 19.02.2009
EDIT: Hey, thx for anything, i've fixed it
Admin, please delete this
Hey every1.
I've been trying to change the text wich is shown to all players when some1 die, like
blabla killed
ehmerr (knife).
to
ehmerr died, murder weapon is knife, killer is unknown. LiveNews: We allways know whats happening
after i changed that, and edited the code around little to:
public OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME],weaponname[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
GetWeaponName(reason,weaponname,sizeof(weaponname) );
new wstring[128];
if(!strcmp(name,true)) {
format(wstring, sizeof(wstring), "%s has died (Unknown). LiveNews: We allways know whats happening", name);
} else {
format(wstring, sizeof(wstring), "%s died, murder weapon is %s, killer is unknown. LiveNews: We allways know whats happening", name,weaponname);
}
SendClientMessageToAll(COLOR_YELLOW, wstring);
i got this error:
Quote:
C:\DOCUME~1\Rok\Desktop\Server\SAMP02~1\SERVER~1.2 XD\GAMEMO~1\aa.pwn(3551) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
the error line is:
i would need 2 know how to fix this, since its first time i got error of this kind.
cheers