Raised This Month: $ Target: $400
 0% 

Need fix some errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 08-22-2008 , 04:18   Need fix some errors
Reply With Quote #1

I am getting some errors can somebody fix this?

Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
 register_plugin("bla", "0.1", "LostSkill");
 register_logevent("logevent_Round_Start", 2, "1=Round_Start");
}
public logevent_Round_Start()
{
 new players[32], player, pnum;
 get_players(players, pnum, "a");
 for(new i = 0; i < pnum; i++)
 {
  player = players[i];
  if(get_user_flags(player) & ADMIN_LEVEL_H && get_user_authid(player) && STEAM_0:0:123456)
  {
  give_item(player, "weapon_hegrenade");
  give_item(player, "weapon_flashbang");
  give_item(player, "weapon_flashbang");
  give_item(player, "weapon_smokegrenade");
  give_item(player, "item_kevlar");
  give_item(player, "item_assaultsuit");
  give_item(player, "item_thighpack");
  }
 }
}
in Line

Code:
if(get_user_flags(player) & ADMIN_LEVEL_H && get_user_authid(player) && STEAM_0:0:123456)
__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 08-22-2008 , 04:57   Re: Need fix some errors
Reply With Quote #2

Code:
 new szSteamid[32];
 get_user_authid(player, szSteamid, sizeof szSteamid - 1);
 
 if((get_user_flags(player) & ADMIN_LEVEL_H) && equal(szSteamid, "STEAM_0:0:123456"))
 {
  //...
 }
Alka is offline
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 08-22-2008 , 05:07   Re: Need fix some errors
Reply With Quote #3

It not worked but whithow steamID it give's me HE and blablabla but if i remove level_h from my nick and whana that it give me by SteamID it dont give me ;/


Edited: and write me when i try compile Lost identification on line 16,17 and it is
Code:
new szSteamid[32];
 get_user_authid(player, szSteamid, sizeof szSteamid - 1);
__________________
MY ENGLISH IS BAD.....

Last edited by LostSkill; 08-22-2008 at 05:10.
LostSkill is offline
Send a message via MSN to LostSkill
LostSkill
Senior Member
Join Date: Jun 2008
Location: Monuhuelo Island
Old 08-24-2008 , 12:19   Re: Need fix some errors
Reply With Quote #4

Well i did another way i get no errors but its dont give me what it should give
PHP Code:
#include <amxmodx>
#include <fun>
#define MySteamID "STEAM_0:1:234567" 
new authid[32]
public 
plugin_init()
{
 
register_plugin("bla""0.1""LostSkill");
 
register_logevent("logevent_Round_Start"2"1=Round_Start");
}
public 
logevent_Round_Start()
{
 new 
players[32], playerpnum;
 
get_players(playerspnum"a");
 for(new 
0pnumi++)
 {
  
player players[i];
  
get_user_authid(playerauthid1)
  if((
get_user_flags(player) & ADMIN_LEVEL_H) && equal(authidMySteamID))
  {
  
give_item(player"weapon_hegrenade");
  
give_item(player"weapon_flashbang");
  
give_item(player"weapon_flashbang");
  
give_item(player"weapon_smokegrenade");
  
give_item(player"item_kevlar");
  
give_item(player"item_assaultsuit");
  
give_item(player"item_thighpack");
  }
 }

so maybe know whats wrong? ;/
__________________
MY ENGLISH IS BAD.....
LostSkill is offline
Send a message via MSN to LostSkill
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 03:08.


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