would need just lil help
#1

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:
Quote:

if(!strcmp(name,true)) {

i would need 2 know how to fix this, since its first time i got error of this kind.


cheers



Reply


Messages In This Thread
would need just lil help - by Extrak - 19.02.2009, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)