04.12.2011, 08:00
dude i need help i get this error
and also help me if this is gonna work i need help in Giving the player/inviting guest weapon to weaponname/id
Код:
D:\GTA San Andreas\SAMP Server\gamemodes\Stunt.pwn(764) : error 035: argument type mismatch (argument 2) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
CMD:acceptduel(playerid, params[])
{
new string[128],pname[MAX_PLAYER_NAME],recievername[MAX_PLAYER_NAME];
new id;
GetPlayerName(playerid,pname,sizeof(pname));
GetPlayerName(id,recievername,sizeof(recievername));
if(GetPVarInt(id,"Duel") == 1)
{
SetPVarInt(playerid,"InDuel",1);
SetPVarInt(id,"InDuel",1);
SetPVarInt(playerid,"Duel",0);
format(string,sizeof(string),"[DUEL]; %s (ID: %d) has accept your duel invite", recievername,id);
SendClientMessage(playerid,COLOR_GREEN,string);
SendClientMessage(playerid,COLOR_GREEN,"[DUEL]: The duel will start in 5 secs");
format(string,sizeof(string),"You accept %s's duel invite now the duel will start in 5 secs",pname);
SendClientMessage(id,COLOR_GREEN,string);
}
else
{
SendClientMessage(id,COLOR_RED,"No one is inviting you in duel");
}
return 1;
}
CMD:ignoreduel(playerid,params[])
{
new string[128],pname[MAX_PLAYER_NAME],recievername[MAX_PLAYER_NAME];
new id;
GetPlayerName(playerid,pname,sizeof(pname));
GetPlayerName(id,recievername,sizeof(recievername));
if(GetPVarInt(id,"Duel") == 1)
{
SetPVarInt(playerid, 0);
format(string,sizeof(string),"[DUEL]; %s (ID: %d) has ignore your duel invite", recievername,id);
SendClientMessage(playerid,COLOR_RED,string);
format(string,sizeof(string),"You ignore %s's duel invite",pname);
SendClientMessage(id,COLOR_RED,string);
}
else
{
SendClientMessage(id,COLOR_RED,"No one is inviting you in duel");
}
return 1;
}