Raised This Month: $ Target: $400
 0% 

Need help with a script


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Boomd
Junior Member
Join Date: Jun 2012
Old 02-09-2013 , 07:52   Need help with a script
#1

Code:
#include <a_samp>
#include <zcmd>
#include <sscanf>

#define COLOR_YELLOW 0xFFFF00
#define COLOR_GRAY 0x585858

CMD:buy(playerid, params[])
{
  SendClientMessage(playerid, COLOR_YELLOW, "buy 1 M4 7000$");
  SendClientMessage(playerid, COLOR_YELLOW, "buy 2 sawnoff  12000$");
  SendClientMessage(playerid, COLOR_YELLOW, "buy 3 deagle  6000$");
  SendClientMessage(playerid, COLOR_YELLOW, "buy 4 sniper  20000$");
  SendClientMessage(playerid, COLOR_YELLOW, "buy 5 armor  1000$");
  SendClientMessage(playerid, COLOR_YELLOW, "buy 6 pistol  5000$");
  SendClientMessage(playerid, COLOR_YELLOW, "buy 7 tec9  16000$");
  return 1;
}

CMD:buy1(playerid, params[])
{
   GivePlayerMoney(playerid, -7000);
   GivePlayerWeapon(playerid, 31, 500);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи M4 за 7000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 7000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие");
   return 1;
}
   return 1;
}

CMD:buy2(playerid, params[])
{
   GivePlayerMoney(playerid, -7000);
   GivePlayerWeapon(playerid, 26, 100);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи Sawnoff за 12000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 12000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие");
   return 1;
}
   return 1;
}

CMD:buy3(playerid, params[])
{
   GivePlayerMoney(playerid, -6000);
   GivePlayerWeapon(playerid, 24, 900);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи Deagle за 6000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 6000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие");
   return 1;
}
   return 1;
}

CMD:buy4(playerid, params[])
{
   GivePlayerMoney(playerid, -20000);
   GivePlayerWeapon(playerid, 34, 50);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи Sniper за 20000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 20000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие");
   return 1;
}
   return 1;
}

CMD:buy5(playerid, params[])
{
   GivePlayerMoney(playerid, -1000);
   SetPlayerArmour(playerid, 100);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи Armour за 1000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш Армор");
   return 1;
}
   return 1;
}

CMD:buy6(playerid, params[])
{
   GivePlayerMoney(playerid, -5000);
   GivePlayerWeapon(playerid, 22, 1200);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи Pistol за 5000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие");
   return 1;
}
   return 1;
}

CMD:buy7(playerid, params[])
{
   GivePlayerMoney(playerid, -16000);
   GivePlayerWeapon(playerid, 32, 1000);
   SendClientMessage(playerid, COLOR_GRAY, "Ти си купи Tec9 за 16000$");
   }
   else
   {
   if(GetPlayerMoney(playerid) < 16000) return SendClientMessage(playerid, COLOR_YELLOW, "Нямаш достатъчно пари за да си купиш това оражие");
   return 1;
}
ERRORS:

D:\igri\GTA-SanAndreas\pawno\gaga.pwn(26) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(2 : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(29) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(31) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(40) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(42) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(43) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(45) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(54) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(56) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(57) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(59) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(6 : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(70) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(71) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(73) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(82) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(84) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(85) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(87) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(96) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(9 : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(99) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(101) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(110) : error 010: invalid function or declaration
D:\igri\GTA-SanAndreas\pawno\gaga.pwn(112) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Boomd is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 02-09-2013 , 07:53   Re: Need help with a script
#2

Quote:
Originally Posted by YamiKaitou View Post
We do not support GTA:SA
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode