Police dispatch
#1

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
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
    }
ERRORC:\Users\Saurabh\Desktop\Saurabh\Server\gamem odes\underworld1.pwn(345 : error 035: argument type mismatch (argument 2)
Reply


Messages In This Thread
Police dispatch - by narutogeek11 - 02.03.2009, 05:28
Re: Police dispatch - by Austin_Lynn - 02.03.2009, 05:34
Re: Police dispatch - by JaYmE - 02.03.2009, 05:37

Forum Jump:


Users browsing this thread: 1 Guest(s)