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 - Ettans

Pages: [1] 2 3 4
1
mIRC/pawn Scripting / Re: [PAWN]Dini, dubd, dutils.. and...
« on: July 11, 2010, 08:12:29 pm »
The broken scripting functions are all known and dealt/being dealt with.

2
mIRC/pawn Scripting / Re: [PAWN]Dini, dubd, dutils.. and...
« on: July 08, 2010, 12:00:31 pm »
I can't remember exactly, but dini/dudb/dutils might not be fully compatible with VC:MP at this point, you need to check them and see if they're using any SA:MP dependencies. About the colors, it's a bug in 0.3. As for the "/c command" syntax, it just is, not for long though.

3
mIRC/pawn Scripting / Re: how to do teleportation in pawn?
« on: April 02, 2010, 10:08:14 am »
No, you add this:

Code: [Select]
if(strcmp("jail",cmdtext,true) == 0)
{
    SetPlayerPos(playerid,390.6279,-507.9221,9.3956,0); // playerid, x, y, z, interior
    SendClientMessage(playerid,COLOR_GREEN,"You have been teleported to the jail!"); // playerid, color, message
    return 1;
}

To OnPlayerCommandText, anywhere in there. Then use /c jail in-game.

4
mIRC/pawn Scripting / Re: [Want Help] ( Want Some scripts )
« on: March 14, 2010, 09:34:17 pm »
Learn PAWN language, it's very easy. Stop trying to copy&paste things and not doing anything yourself...

5
Tutorials / Re: How to do a basical Internet Server
« on: March 13, 2010, 10:23:49 pm »

6
Support / Re: I can't type
« on: March 06, 2010, 07:26:02 pm »
Have you tried re-installing the VC:MP client?

7
mIRC/pawn Scripting / Re: question
« on: March 04, 2010, 08:24:12 pm »
Make a loop through all players, then set their location.

8
mIRC/pawn Scripting / Re: pawno compiler question
« on: March 03, 2010, 07:46:58 pm »
You can just ignore it, or use #pragma unused Player

9
mIRC/pawn Scripting / Re: Check Cmd
« on: March 02, 2010, 05:11:40 pm »
Yeah, like I said, anywhere on-top of your gamemode.

10
mIRC/pawn Scripting / Re: Check Cmd
« on: March 02, 2010, 03:57:16 pm »
I did an automatic HP/Armour check for you. It runs every minute and checks if the players HP or Armour is over 75.

Code: [Select]
/* Add to the top of your gamemode */
forward AntiCheat(playerid);

/* Add to OnGameModeInit callback */
SetTimer("AntiCheat",60000,1);

/* Add anywhere in your script */
public AntiCheat(playerid)
{
    for(new i = 0; i < 50; i++)
    {
        if(IsPlayerConnected(i))
{
    new Float:hp,
Float:armour;

    if(GetPlayerHealth(i,hp) > 75)
    {
        /* HP over 75, do your stuff here */
    }
    else if(GetPlayerArmour(i,armour) > 75)
    {
        /* Armour over 75, do your stuff here */
    }
        }
    }
    return 1;
}

Pastebin link: http://pastebin.com/BkRanF2a

11
mIRC/pawn Scripting / Re: compile error help
« on: March 02, 2010, 03:42:41 pm »
255 characters will fit in a string with a size of 256 bytes. 255+null = 256. For example, if you have a sentence with 63 characters, then you'd only need a string-size if 64. Always keep them as low as possible (to decrease memory usage), 128 is the max length in the chat by the way, so using 128 is just fine. MyString[pos] would be an array, example usage:

Code: [Select]
new MyString[64];
MyString[0] = "Hello";
MyString[1] = "Kitty";

If you want to read/extract a certain part of the string, you should use strfind or strmid.

http://wiki.sa-mp.com/wiki/Strmid
http://wiki.sa-mp.com/wiki/Strfind

12
mIRC/pawn Scripting / Re: compile error help
« on: March 02, 2010, 09:11:21 am »
Code: [Select]
if(!strlen(cmd)) // Called if cmd is null
Code: [Select]
if(strlen(text[0]) == 0) // Called if text is nullBoth work the same way.

To use strtok globally, make a file called strtok.inc in /pawno/includes and put the strtok function in it, then just add #include <strtok> on-top of your gamemode.

13
mIRC/pawn Scripting / Re: Problem...
« on: March 01, 2010, 09:33:54 pm »
The code works for me, compiles fine. Please post the compile log (from the small window).

14
mIRC/pawn Scripting / Re: joining strings
« on: March 01, 2010, 08:48:51 pm »
Code: [Select]
MyString[256] = "this is a test string";
MyInt = 1;

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

Output: this joins this is a teststring with 1

15
mIRC/pawn Scripting / Re: Problem...
« on: March 01, 2010, 08:47:20 pm »
We can't give you an example. Does the compiler give you any errors or warnings? Copy paste the log.

Pages: [1] 2 3 4