• Welcome to Vice City Multiplayer.
 
Menu

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.

Show posts Menu

Messages - Ettans

#17
Support / Re: I can't type
March 06, 2010, 05:26:02 PM
Have you tried re-installing the VC:MP client?
#18
General Discussion / Re: VC-MP World Fighters Union
March 06, 2010, 02:50:49 PM
Or a union of clans that play together a lot, scrims, matches etc.
#19
What do you mean 'kicked'? It's their server, they pay, they play.
#20
mIRC/pawn Scripting / Re: question
March 04, 2010, 06:24:12 PM
Make a loop through all players, then set their location.
#21
VC:MP is in no way affiliated to any actual servers. Report it on the servers website.
#22
General Discussion / Re: Help to the country Haiti
March 04, 2010, 08:18:00 AM
Probably true, that's why Chile definitely doesn't need international help, as 799+ dead is tiny, compared to Haitis 300k+ dead.
#23
mIRC/pawn Scripting / Re: pawno compiler question
March 03, 2010, 05:46:58 PM
You can just ignore it, or use #pragma unused Player
#24
mIRC/pawn Scripting / Re: Check Cmd
March 02, 2010, 03:11:40 PM
Yeah, like I said, anywhere on-top of your gamemode.
#25
mIRC/pawn Scripting / Re: Check Cmd
March 02, 2010, 01: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.


/* 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
#26
mIRC/pawn Scripting / Re: compile error help
March 02, 2010, 01: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:

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
#27
mIRC/pawn Scripting / Re: compile error help
March 02, 2010, 07:11:21 AM
if(!strlen(cmd)) // Called if cmd is null
if(strlen(text[0]) == 0) // Called if text is null
Both 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.
#28
mIRC/pawn Scripting / Re: Problem...
March 01, 2010, 07:33:54 PM
The code works for me, compiles fine. Please post the compile log (from the small window).
#29
mIRC/pawn Scripting / Re: joining strings
March 01, 2010, 06:48:51 PM
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
#30
mIRC/pawn Scripting / Re: Problem...
March 01, 2010, 06:47:20 PM
We can't give you an example. Does the compiler give you any errors or warnings? Copy paste the log.