Author Topic: How to do this on VCMP  (Read 3809 times)

0 Members and 1 Guest are viewing this topic.

Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
How to do this on VCMP
« 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


_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to do this on VCMP
« Reply #1 on: December 05, 2011, 05:22:32 am »
Moby, 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.
I'm beginning to feel like a Lag God, Lag God

Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: How to do this on VCMP
« Reply #2 on: December 06, 2011, 01:36:09 am »
Ok thanks
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: How to do this on VCMP
« Reply #3 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!
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to do this on VCMP
« Reply #4 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.
I'm beginning to feel like a Lag God, Lag God

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: How to do this on VCMP
« Reply #5 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 ?
« Last Edit: December 08, 2011, 10:46:26 am by heekz.shadow »
Code: [Select]
[20:23] <habi> later only i heard that lu chatbox is customizable. On my first visit, it appeared ugly.
[20:23] <habi> May be that also be the reason why lu has no players

Offline DilsonTB

  • Made Man
  • ***
  • Posts: 140
  • VC:MP Developer. & SA:MP Currently Developer
    • View Profile
Re: How to do this on VCMP
« Reply #6 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]
_______________________________________________
¬ VC:MP Squirrel Developer.
¬ VC:MP pawno Developer.
¬ SA:MP Developer.
¬
¬ Actually developing " San Fierro Roleplay - Latino ", with
my beta team testers, Mapper + Scripter ( me ), 18,000
lines, and is 34% finished. hope to finish it in 4 Or 3 Months.

- MYSQL FULL BASED.
- PCU.
_______________________________________________

Offline Fuzzy168

  • VC:MP Veteran
  • *****
  • Posts: 729
  • Programming since 2011
    • View Profile
Re: How to do this on VCMP
« Reply #7 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)
I'm beginning to feel like a Lag God, Lag God

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: How to do this on VCMP
« Reply #8 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!
Outdoor city server Administrator, FS server owner!