• 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 - ClaN_Tai

#1
To be truth there is still much missing in all VC:MP wikis that exists...
#2
Whenever SendClientMessage is used it sends a message to a player.
If first message has color X it sends it...
Any following message with another color will change all previous messages
to the color of the last one.

I think it is not working as it is supposed to work :P

If I want a message in Grey and the 2nd in red should not make both red lol ^^

Also it changes the color of previous SendClientMessageToAll messages :)

Greetz, Tai
#3
Thanks but this is used like...

/c !mycommand

any way to make commands like...

/mycommand ?
#4
mIRC/pawn Scripting / Re: Can't Create files
February 07, 2010, 12:46:54 AM
[...]/scriptfiles/mode/mode/GAME/GameMode.ini :)
#5
mIRC/pawn Scripting / Re: "if" is not working.
February 05, 2010, 07:32:20 PM
Alert: I also seen another thing that is impossible to work!

SendClientMessageToAll(ORANGE,"%s lost in duel", name);

Will never work!

new string[MAX_STRING];
format(string,sizeof(string),"%s lost in duel",name);
SendClientMessageToAll(ORANGE,string)


As
SendClinetMessageToAll();
has only 2 strings to be set! "color" and "string" :)
#6
I got following propblems:

  • Class-Selection
Whenever I use "AddPlayerClass();" there will no skin shown on
class selection. I am a bit confused bout that problem as I cannot find
any explanation.

  • Commands
Could anyone tell me how they should be scripted? I got no freaking
idea if I use "strcmp" it does not work either. Does I have to
care about any specific thing that is different to SA:MP PAWNO?
#7
mIRC/pawn Scripting / Re: Can't Create files
February 05, 2010, 07:24:03 PM
Easy... as long there is no file type it cannot make it :)
You want him to create a file without any type, so it
does not create it...

Just change:
#define GameMode            "/mode/GAME/GameMode"

To:
#define GameMode            "/mode/GAME/GameMode.ini"

And it should create the file... Just don't to forget what type it should have,
you can even found an own one... .myfile, .gm, .... etcetera.
#8
mIRC/pawn Scripting / Re: "if" is not working.
February 05, 2010, 07:18:20 PM
Note you should always write into your first post what problems compiler says... :)
So my suggestion, try this:

forward IncPlayerDuelWons...
forward IncPlayerDuelLoses
forward DuelWon
forward DuelLos

Remove the forwards...

Keep this:
if(PlayerInfo[playerid][Duel] == 1)  DuelLos(playerid,1);

Exchange the public functions with stocks, as they only change Users
accounts values, important is that you write them under your header.
So first all definitions, includes and then the stocks.
stock IncPlayerDuelWons(playerid,Amount)
{
format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);
new duelw; duelw = dini_Int(file, "DuelWons");
dini_IntSet(file, "DuelWons", duelw +Amount);
}

stock IncPlayerDuelLoses(playerid,Amount)
{
format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);
new duell; duell = dini_Int(file, "DuelLoses");
dini_IntSet(file, "DuelLoses", duell +Amount);
}
stock DuelWon(playerid,Amount)
{
format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);
dini_IntSet(file, "Duel", 0);
new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(ORANGE,"%s won in duel", name);
    IncPlayerDuelWons(playerid,1);
SetPlayerPos(playerid, -731.411499,-1526.219848,12.526686,120,0);
}

stock DuelLos(playerid,Amount)
{
format(file, sizeof(file), USERS_FILE, gPlayers[playerid]);
dini_IntSet(file, "Duel", 0);
new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    SendClientMessageToAll(ORANGE,"%s lost in duel", name);
    IncPlayerDuelLoses(playerid,1);
}


If it still don't work you need to give me more informations about this "USER_FILE" and the return of gPlayers[playerid].

Cheers, Tai
#9
mIRC/pawn Scripting / Re: [PAWNO] Scripting Resources
January 31, 2010, 02:15:33 PM
Thanks for your help!  :D

- Tai
#10
mIRC/pawn Scripting / [PAWNO] Scripting Resources
January 27, 2010, 06:44:29 PM
Hello guys,
I've got the problem that I cannot find any resources like
skin IDs, Icon IDs etcetera.

Does someone know where I can find them or get them from?

Thanks, Tai :)