Script 2 warnings can't solve it please help me.
#3

Still doesn't work, I don't know what to do.
PHP код:
C:\Documents and Settings\\My Documents\Downloads\samp03bsvr_R2_win32\filterscripts\slap.pwn(186) : error 029invalid expressionassumed zero
C
:\Documents and Settings\\My Documents\Downloads\samp03bsvr_R2_win32\filterscripts\slap.pwn(186) : error 004: function "giveweaponstohim" is not implemented
C
:\Documents and Settings\\My Documents\Downloads\samp03bsvr_R2_win32\filterscripts\slap.pwn(203) : error 030compound statement not closed at the end of file (started at line 177
New code:
PHP код:
forward giveweaponstohim(otherIdgunIDgunAmmo);
CMD:gw(playeridparams[])
{
if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF4646FF"You are not authorized to use that command !");
else
{
  new 
otherId;
  new 
sendername[MAX_PLAYER_NAME];
  new 
giveplayer[MAX_PLAYER_NAME];
  new 
string[256];
  if(
sscanf(params"u"otherId)) return SendClientMessage(playerid0xAFAFAFAA"USAGE: /gw [PlayerID/PartOfName] [Weapon ID] [Ammo]");
  
format(stringsizeof(string), "* You Jailed %s."giveplayer);
  
SendClientMessage(playeridCOLOR_LIGHTREDstring);
 if(
otherId == INVALID_PLAYER_ID) return SendClientMessage(otherId0xAFAFAFAA"Invalid Player ID");
   {
{
new 
gunID GetPlayerWeapon(playerid);
new 
gunAmmo GetPlayerAmmo(playerid);
GetPlayerName(playeridsendernamesizeof(sendername));
if(
gunID != && gunAmmo != 0)
{
public 
giveweaponstohim(otherIdgunIDgunAmmo);
{
GetPlayerName(playeridsendernamesizeof(sendername)); 
format(stringsizeof(string), "* You have been given a weapon by Admin %s "sendernamegunIDgunAmmo );
                
SendClientMessage(playerid0xFF4646FFstring);
}
        }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)