02.03.2009, 05:28
Hey i saw ur post and u look like u know a lot abput scriting. For a few days i have been struggling with a police dispatch .Here is my script
ERRORC:\Users\Saurabh\Desktop\Saurabh\Server\gamem odes\underworld1.pwn(345
: error 035: argument type mismatch (argument 2)
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
new name[MAX_PLAYER_NAME],kname[MAX_PLAYER_NAME],weaponname[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
GetPlayerName(killerid,kname,sizeof(kname));
GetWeaponName(reason,weaponname,sizeof(weaponname));
new wstring[128];
if(!strcmp(name,kname,true)) {
format(wstring, sizeof(wstring), "%s has died (Unknown).", name);
} else {
format(wstring, sizeof(wstring), "%s has killed %s (%s).", kname,name,weaponname);
}
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SendClientMessage(COLOR_DBLUE, wstring); <--------------------IDK why but it gives me a prob with this line here is the error
}
