Raised This Month: $ Target: $400
 0% 

Const reading problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-11-2014 , 10:43   Re: Const reading problem
Reply With Quote #1

Code:
#include <amxmodx> new const g_maps[][] = {    "de_inferno",    "de_dust2" } public plugin_init(){    register_plugin("Drop Awp","0.3","Faval")    register_event("WeapPickup","Kontroll","b","1=18") } public Kontroll(id) {    new map[32]    get_mapname(map, charsmax(map))    for(new i=0;i< sizeof g_maps;i++)    {       if(equal(map, g_maps[i]))       {          continue       }       new llama = read_data(0)       client_print(llama,print_center,"AWP pole lubatud.")       engclient_cmd(llama, "drop","weapon_awp")       client_cmd(llama,"drop weapon_awp")    } }
You should learn how to use and when to use return.
__________________

Last edited by HamletEagle; 12-11-2014 at 10:47.
HamletEagle is offline
Reply



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 15:32.


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