SpeedKill Dzięki tylko mam małe błędy podczas kompilacji
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
C:\Users\Mateusz\Desktop\glut vip 1.0.sma(190) : warning 209: function "cbbronie" should return a value
C:\Users\Mateusz\Desktop\glut vip 1.0.sma(204) : error 088: number of arguments does not match definition
C:\Users\Mateusz\Desktop\glut vip 1.0.sma(217) : error 088: number of arguments does not match definition
C:\Users\Mateusz\Desktop\glut vip 1.0.sma(230) : error 088: number of arguments does not match definition
C:\Users\Mateusz\Desktop\glut vip 1.0.sma(244) : warning 209: function "cbsklep_vipa" should return a value
3 Errors.
Could not locate output file C:\Users\Mateusz\Desktop\glut vip 1.0.amx (compile failed).
Compilation Time: 2,10 sec
tyczy sie to linijek
cs_get_user_money(id,cs_get_user_money(id)-10000)
cs_get_user_money(id,cs_get_user_money(id)-8000)
cs_get_user_money(id,cs_get_user_money(id)-8000)
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define PLUGIN "VIP"
#define AUTHOR "glut"
#define VERSION "1.0"
#define MYMENU_KEYS MENU_KEY_1|MENU_KEY_2
#define BRONIE_KEYS MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_4|MENU_KEY_5|MENU_KEY_9
#define SV_KEYS MENU_KEY_1|MENU_KEY_2|MENU_KEY_3|MENU_KEY_9
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /vip","opis_vipa");
register_clcmd("say /mv","menu_vipa",ADMIN_LEVEL_H);
register_clcmd("mv","menu_vipa",ADMIN_LEVEL_H);
register_clcmd("say mv","menu_vipa",ADMIN_LEVEL_H);
register_clcmd("say /bronie","bronie",ADMIN_LEVEL_H);
register_clcmd("bronie","bronie",ADMIN_LEVEL_H);
register_clcmd("say bronie","bronie",ADMIN_LEVEL_H);
register_clcmd("say /sv","sklep_vipa",ADMIN_LEVEL_H);
register_clcmd("sv","sklep_vipa",ADMIN_LEVEL_H);
register_clcmd("say sv","sklep_vipa",ADMIN_LEVEL_H);
register_menu("menu_vipa",MYMENU_KEYS,"cbmenu_vipa");
register_menu("bronie",BRONIE_KEYS,"cbbronie");
register_menu("sklep_vipa",SV_KEYS,"cbsklep_vipa");
}
public opis_vipa(id)
{
show_motd(id, "vip.txt")
}
public menu_vipa(id)
{
show_menu(id,MYMENU_KEYS, "\yMenu VIPA^n^n\w1.Menu Broni^n\w2.Sklep^n^n");
return PLUGIN_HANDLED;
}
public cbmenu_vipa(id, key)
{
switch(key)
{
case 0:
{
bronie(id)
client_print(id,print_chat,"Wybierz Bron");
}
case 1:
{
sklep_vipa(id)
client_print(id,print_chat,"Kup w sklepie Vipa");
}
}
}
public bronie(id)
{
show_menu(id,BRONIE_KEYS, "\yBronie Vipa^n^n\w1.M4A1+DEAGLE^n\w2.AK47+DEAGLE^n\w3.AWP+DEAGLE^n\w4.MP5+DEAGLE^n\w5.SHOTGUN+DEAGLE^n\w0.Zamknij^n^n\yVip 1.0 Stworzony przez:^n\wglut");
return PLUGIN_HANDLED;
}
public cbbronie(id,key)
{
switch(key)
{
case 0:
{
give_item(id, "weapon_m4a1")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "ammo_556nato")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "item_thighpack")
give_item(id, "item_assaultsuit")
client_print(id,print_chat,"Wybrales M4A1,DEAGLE i wszystkie granaty!!!");
}
case 1:
{
give_item(id, "weapon_ak47")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "ammo_762nato")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "item_thighpack")
give_item(id, "item_assaultsuit")
client_print(id,print_chat,"Wybrales AK47,DEAGLE i wszystkie granaty!!!");
}
case 2:
{
give_item(id, "weapon_awp")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_338magnum")
give_item(id, "ammo_338magnum")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "item_thighpack")
give_item(id, "item_assaultsuit")
client_print(id,print_chat,"Wybrales AWP,DEAGLE i wszystkie granaty!!!");
}
case 3:
{
give_item(id, "weapon_mp5navy")
give_item(id, "ammo_9mm")
give_item(id, "ammo_9mm")
give_item(id, "ammo_9mm")
give_item(id, "ammo_9mm")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "item_thighpack")
give_item(id, "item_assaultsuit")
client_print(id,print_chat,"Wybrales MP5,DEAGLE i wszystkie granaty!!!");
}
case 4:
{
give_item(id,"weapon_xm1014")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "ammo_buckshot")
give_item(id, "weapon_deagle")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "ammo_50ae")
give_item(id, "weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "item_thighpack")
give_item(id, "item_assaultsuit")
client_print(id,print_chat,"Wybrales SHOTGUN,DEAGLE i wszystkie granaty!!!");
}
case 9:
{
give_item(id, "weapon_knife")
give_item(id, "weapon_hegrenade")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_flashbang")
give_item(id, "weapon_smokegrenade")
give_item(id, "item_thighpack")
give_item(id, "item_assaultsuit")
client_print(id,print_chat,"Otrzymales wszystkie granaty!!!");
return PLUGIN_HANDLED
}
}
}
public sklep_vipa(id)
{
show_menu(id,SV_KEYS, "\ySklepVipa^n^n\w1.Dodatkowe 50HP\y:Koszt 10000^n\w2.Zmniejszona grawitacja\y:Koszt 8000^n\w3.Zmniejszona widoczność\y:Koszt 8000^n\w0.Zamknij^n^n\yVip 1.0 Stworzony przez:^n\wglut");
return PLUGIN_HANDLED;
}
public cbsklep_vipa(id,key)
{
switch(key)
{
case 0:
{
if(cs_get_user_money(id) >= 10000)
{
cs_get_user_money(id,cs_get_user_money(id)-10000)
set_user_health(id,get_user_health(id)+50)
client_print(id,print_chat,"Kupiles dodatkowe 50HP");
}
else
{
client_print(id,print_chat,"Nie masz tyle kasy")
}
}
case 1:
{
if(cs_get_user_money(id) >= 8000)
{
cs_get_user_money(id,cs_get_user_money(id)-8000)
set_user_gravity(id, Float: 0.75)
client_print(id,print_chat,"Twoja grawitacja została zmniejszona do 600");
}
else
{
client_print(id,print_chat,"Nie masz tyle kasy")
}
}
case 2:
{
if(cs_get_user_money(id) >= 8000)
{
cs_get_user_money(id,cs_get_user_money(id)-8000)
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderNormal, 100)
client_print(id,print_chat,"Twoja widzocznosc została zmniejszona do 100");
}
else
{
client_print(id,print_chat,"Nie masz tyle kasy")
}
}
case 9:
{
return PLUGIN_HANDLED
}
}
}
Użytkownik glut1997 edytował ten post 13.07.2012 22:15