Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ramandu

Pages: [1] 2
1
Support / Re: [Help !!!!!!] Problem...
« on: March 26, 2010, 09:45:46 pm »
download AIDA32 or EVEREST ULTIMATE, both are hardware probers/diagnosntics and provide you with direct links to any driver downloads.

2
Support / Re: How to make server private
« on: March 26, 2010, 08:07:13 pm »
the more secure, the better, turn your old pc's into complete hardware gateways between you and the internet.

Internet - Router - Gateway - Managed Switch - Server_Machine
                                                |
                                            Switch  Switch Switch             
                                                |       |        |
                                              PCs    PCs    PCs

3
mIRC/pawn Scripting / Re: [PAWN] Pickup function
« on: March 26, 2010, 03:48:20 pm »
a timer worked for me, sometimes forcing these things works

4
mIRC/pawn Scripting / Re: mirc server not on main site
« on: March 23, 2010, 10:37:07 pm »
thanks
my main script is in pawn now, because i can do so much more, but this is good to keep in reserve.

will it be gone soon and we will only have pawn?

5
mIRC/pawn Scripting / mirc server not on main site
« on: March 23, 2010, 08:30:29 pm »
hi i cant find where to download the mirc server.

is is pointless to use it now?

6
mIRC/pawn Scripting / pawno compiler question
« on: March 03, 2010, 07:42:04 pm »
is there anyway to suppress the warnings for unused variables in the compiler ?

warning 203: symbol is never used: "Player"

i would also like to keep the variable there for potential future use.

thankyou

7
mIRC/pawn Scripting / switch case help
« on: March 03, 2010, 05:27:33 pm »
hi, it seems the topic was locked for no apparent reason.

you asked me a question.

Why do you use Primary_Group
 its simply just name i gave it to represent the value of the function.

It will switch only the first letter.
ok thankyou for this information, how do i make it switch the complete word ?

8
mIRC/pawn Scripting / Re: switch case help
« on: March 03, 2010, 05:13:24 pm »
hi, it points directly to this line

Code: [Select]
case "USER", "ADMIN", "HALF-ADMIN", "MODERATOR":

i am calling it like this,

Code: [Select]
if ( IsPlayerGroup_Mod("ramandu", "MODERATOR") ) { printf("yes, ramandu's group MODERATOR is found and also has access to user, admin, half-admin commands"); }

9
mIRC/pawn Scripting / Re: switch case help
« on: March 03, 2010, 04:43:34 pm »
thankyou boss, it suppressed allot of the errors and leaves just this one;


Code: [Select]
error 008: must be a constant expression; assumed zero

10
mIRC/pawn Scripting / switch case help
« on: March 03, 2010, 03:43:28 pm »
i'm trying to make a command group hierarchy.

if the players primary group is any of the four in the "case" statement, he has access to all of that groups commands.

but as soon as i increase any of the "case" values above two characters, it throws many compile errors.


Code: [Select]
stock
IsPlayerGroup_Mod(Player[], Primary_Group[])
{

switch (Primary_Group[0])
{


// case 'a', 'b', 'c', 'd' : // ->  works
// case '1', '2', '3', '4': // -> This works too

case 'USER', 'ADMIN', 'HALF-ADMIN', 'MODERATOR': // -> but this dosnt work, why ?
{
return 1;

}
}
return 0;
}

calling syntax: IsPlayerGroup_Mod("Ramandu", "ADMIN");

how do i solve it ?

thankyou very much

11
mIRC/pawn Scripting / Re: compile error help
« on: March 02, 2010, 02:43:37 pm »
Thankyou, i have a couple more questions.

why 256 when declaring strings? 256 represents bytes, yes ? how many chars will fit in 256 bytes? should i make it as low as possible ?

can i access a given string delimiter by using a [1] format.

New
   Index,
   MyString = "this is my string";

   strtok(MyString, Index);

   MyString[0] // does this return the total segments ?
   MyString[1] // does this return the first segmant ?
   MyString[2] // does this return the second segment ?

if not, how do i accomplish it.

thankyou very much.

12
mIRC/pawn Scripting / joining strings
« on: March 01, 2010, 08:26:23 pm »
how do we join strings with other strings, and strings with integers in pawn?

something like sprintf();

MyString[256] = "this is a test string";
MyInt = 1;

sprintf("%s %s %s %d \n", "this joins", MyString, "with", MyInt);

thankyou very much.

13
mIRC/pawn Scripting / Re: compile error help
« on: March 01, 2010, 07:18:26 pm »
thankyou, i have another question.

howto check a value is not null after using strtok?

cmd = strtok(Text, idx);

if (strcmp(cmd, " ", true) == 0) { printf("cmd is empty"); } // it always prints "cmd is empty" even if its not

also, am i able to add the strtok function to a .inc file and globally use it. if so, how.

thankyou very much

14
mIRC/pawn Scripting / compile error help
« on: February 28, 2010, 11:36:24 pm »
i have started pawn and i am praticing string manipulation

only problem is, i get this compile error.

error 017: undefined symbol "strtok"

what do i need to do to fix it ?

15
mIRC/pawn Scripting / pawn commands
« on: February 28, 2010, 04:03:16 pm »
would someone exaplin which is best way of processing commands in pawn?

strtok
strcmp
dcmd
zcmd

thankyou very much.

Pages: [1] 2