Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 10 of 10
Search took 0.00 seconds.
Search: Posts Made By: itimeheke
Forum: Code Snippets/Tutorials 01-07-2011, 07:21
Replies: 100
Views: 75,177
Posted By itimeheke
Re: [TUT] Bits, Bit-fields, and Bit-wise Operators

That's because bit shifting starts form zero (1 << 0) but player id's from one. This (id & 31) puts this first bit in use by assigning player 32 data to first bit, cause (32 & 31) = 0. Otherwise,...
Forum: Scripting Help 01-04-2011, 16:13
Replies: 8
Views: 2,319
Posted By itimeheke
Re: Problem with containi function

Yeah, figured it out already, thanks any way bugsy :)
Forum: Scripting Help 01-04-2011, 16:09
Replies: 8
Views: 2,319
Posted By itimeheke
Re: Problem with containi function

Figured out! :D I forgot that its returning position of the string, or -1 as not found, so it may be zero also. Thanks anyway!
Forum: Scripting Help 01-04-2011, 16:01
Replies: 8
Views: 2,319
Posted By itimeheke
Re: Problem with containi function

From string.inc:

/* Checks if source contains string. On success function
* returns position in source, on failure returns -1. */
native contain(const source[],const string[]);

/* Checks if...
Forum: Scripting Help 01-04-2011, 15:57
Replies: 8
Views: 2,319
Posted By itimeheke
Re: Problem with containi function

Cuz i'd want it to be case insensitive. Is there any difference? If so, i can lower both strings and then contain?
Forum: Scripting Help 01-04-2011, 15:09
Replies: 8
Views: 2,319
Posted By itimeheke
Problem with containi function

Hi there!

I'm using containi on my function which searches users by name. And it does not work, it passes like even "Alfred" compared to "elli" (TESTED!). This is my code:
public...
Forum: Code Snippets/Tutorials 01-04-2011, 10:19
Replies: 100
Views: 75,177
Posted By itimeheke
Re: [TUT] Bits, Bit-fields, and Bit-wise Operators

Hi! Great tut!

But i'm wondering is there any way to check how many bits are set in bitfield? I mean better way than checking every bit individually and counting results.
Forum: Suggestions / Requests 01-03-2011, 11:52
Replies: 6
Views: 1,584
Posted By itimeheke
Re: New Vote Style

First one yeah. So it logs every successful "votekick" prom player and if other player(s) "votekick" for the same player then groups these by either cooldown time or change of map. By cooldown i mean...
Forum: Suggestions / Requests 01-02-2011, 15:35
Replies: 6
Views: 1,584
Posted By itimeheke
Re: New Vote Style

Actually, its cute good idea overall. Maybe add reason also, and log votes w/ reason, so admin could see afterwards, who cheats/camps etc. If i'll have some spare time, i'll get on it;)
Forum: Scripting Help 01-01-2011, 18:14
Replies: 1
Views: 889
Posted By itimeheke
Re: Help Admin option

Here you go:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#pragma semicolon 1

/* Hide'n'Seek Shop
* by xPaw & Grim
Showing results 1 to 10 of 10

 
Forum Jump

All times are GMT -4. The time now is 10:54.


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