Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: DilsonTB on December 04, 2011, 11:03:23 pm

Title: How to do this on VCMP
Post by: DilsonTB on December 04, 2011, 11:03:23 pm
if:

Script:

SendClienteMessageToAll(COLOR_GREEN, "%s shoots the ball and... %s, gPlayers[playerid],randomshoot);

Cmd in game

/c shoot

Dilson_Thebest shoots and..dunk the ball
Or randomly

Dilson_Thebest shoots and... Faill the ball

Please help!!

i tried all modes to make it and cant


Title: Re: How to do this on VCMP
Post by: Fuzzy168 on December 05, 2011, 05:22:32 am
Moby (http://forum.vicecitymultiplayer.com/index.php?topic=3486.0), fishing system should do it.. Just take a look at it and you might get an idea. Just a suggestion, try making more sentence. Like Fuzzy168 shoots and ... Hits another guys head.
Title: Re: How to do this on VCMP
Post by: DilsonTB on December 06, 2011, 01:36:09 am
Ok thanks
Title: Re: How to do this on VCMP
Post by: DilsonTB on December 07, 2011, 05:55:07 am
Fuzzy, thats scripts have too much errors, please help me with a new script in VCMP:

Please i cant do itttt i treated all the ways but i couldent.

Your knowladge will be transfered to my mine please!
Title: Re: How to do this on VCMP
Post by: Fuzzy168 on December 08, 2011, 04:05:46 am
First, I don't know how to make stuff like that.. I'm not so pro yet.
Second, try PM Moby.. (The Author of The Script) I'm sure he knows what to do.
Third, Wait for a reply. Maybe Storm or some other person will help you.
Title: Re: How to do this on VCMP
Post by: heekz.shadow on December 08, 2011, 10:42:13 am
On top of the script:

[pawn]
enum Sentences
{
szMsg[65];
}

new RandomTextUsed[ ][ Sentences ] = {
      {"%s attemps to shoot the ball, but fails"}
      {"%s shooted the ball, but, did not miss by much..."}
      {"%s shooted the ball succesfully"}
};









[/pawn]


 In your command

[pawn]     new rand = random(sizeof(RandomTextUsed));
     new add[256];
     format(add,256,RandomTextUsed[rand][szMsg],gPlayers[playerid]);
     SendClientMessageToAll(WHITE,add);[/pawn]




If you cannot figure it out with gPlayers[playerid]

[pawn]new N[33]; GetPlayerName(playerid,N,sizeof(N));[/pawn]


TIP: Rather than just copying and pasting all the script to your gamemode, You should atleast read it and try to figure out what it means...

Okay bro ?
Title: Re: How to do this on VCMP
Post by: DilsonTB on December 08, 2011, 09:29:28 pm
[pawn]C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(129) : error 001: expected token: "}", but found ";"
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(134) : error 001: expected token: ";", but found "{"
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(136) : error 010: invalid function or declaration
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(213) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(214) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(215) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(221) : warning 204: symbol is assigned a value that is never used: "szMsg"
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(234) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(234) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(235) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(278) : warning 204: symbol is assigned a value that is never used: "szMsg"
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(304) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(304) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(305) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(306) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(306) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(307) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(310) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(310) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(311) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(312) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(312) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(313) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(316) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(316) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(317) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(318) : error 035: argument type mismatch (argument 1)
C:\Documents and Settings\Administrador\Escritorio\Serrvidores L.V.R.P\Las Vegas Roleplay Latino LV\gamemodes\LVRP.pwn(318) : error 035: argument type mismatch (argument 1)

Compilation aborted.Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


26 Errors.[/pawn]
Title: Re: How to do this on VCMP
Post by: Fuzzy168 on December 09, 2011, 04:01:26 am
Hmm.. I don't think there's much problem there. Just check the function that the error shows and fix it.  ::) And I don't think it's shadow's fault. His script looks fine to me..  8)
Title: Re: How to do this on VCMP
Post by: BIG[H] on December 09, 2011, 11:59:54 am
Quote
TIP: Rather than just copying and pasting all the script to your gamemode, You should atleast read it and try to figure out what it means...
you Should try to fit this in your gamemode!