Author Topic: Small Help Needed !  (Read 6453 times)

0 Members and 1 Guest are viewing this topic.

Offline Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Small Help Needed !
« on: March 07, 2012, 02:16:31 pm »
Hi GuyZ.. I need Some Help of YOurs. In Pawn Scripting. i want to Edit my Script into CID Cops vs CID Robbers so I Want that whenever anyone Spawn in CID Cops there is Message Show to Them ===>Your Mission is To Defeat The Robbers so That They Can't Attack On Your Base <===
and When they Choose Robbers this message come 2 Robbers
===>Your Mission is to Kill Police and Attack on Police Department <===
These Message come 2 them .
And one Thing More i want to say u that when We are Choosing Class Section evertime there Colours were white never they change so i want to change There Colours i don't know how So tell me I want that For Cops there it Come Blue colour and for RObbers it Come orange colour ! !Remember in Gups Script!
ThankS
Regards
Innocent Heart
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: Small Help Needed !
« Reply #1 on: March 08, 2012, 08:45:14 am »
hELP me Please Reply here .. I want To Do this .. Please Reply here Scripters..
« Last Edit: March 08, 2012, 02:45:41 pm by Innocent Heart »
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: Small Help Needed !
« Reply #2 on: March 08, 2012, 04:22:21 pm »
hey wtf no One Is Replying So Noone is Helping me Why Please Help me GuyZ.
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Small Help Needed !
« Reply #3 on: March 08, 2012, 06:20:38 pm »
1. Triple post
2. Try to speak with regular letters, and don't mix capitals with normal letters..

TL;DR : Don't write this way "HeY GuYz HowArE YOu ?"

3. Learn to wait, I will probably answer whenever I come home...
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 Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: Small Help Needed !
« Reply #4 on: March 08, 2012, 07:19:27 pm »
1. Triple post
2. Try to speak with regular letters, and don't mix capitals with normal letters..

TL;DR : Don't write this way "HeY GuYz HowArE YOu ?"

3. Learn to wait, I will probably answer whenever I come home...
:-[ Sorry Now For Triple Post and ok i will wait Try To tell me Early If u can ...
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Small Help Needed !
« Reply #5 on: March 08, 2012, 07:38:41 pm »
[pawn]#define SKIN_COP 1
#define SKIN_SWAT 2
#define SKIN_FBI 3
#define SKIN_ARMY 4
#define SKIN_CRIMINAL 11
[/pawn]
      ^^^
On the top

[pawn]public OnPlayerSpawn(playerid,class,skinid)
{
if(( skinid == SKIN_COP ) || ( skinid == SKIN_SWAT ) || ( skinid == SKIN_FBI ) || ( skinid == SKIN_ARMY ))
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a law enforcement person.");
}
else if(skinid == SKIN_CRIMINAL)
{
SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a criminal.");
}
[/pawn]

not sure about the callbacks tho..
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 Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: Small Help Needed !
« Reply #6 on: March 09, 2012, 05:56:46 am »
Quote
E:\NOORAN~1\CID.pwn(139) : warning 201: redefinition of constant/macro (symbol "pInfo")
E:\NOORAN~1\CID.pwn(347) : error 017: undefined symbol "skinid"
E:\NOORAN~1\CID.pwn(351) : error 017: undefined symbol "skinid"
E:\NOORAN~1\CID.pwn(824) : warning 204: symbol is assigned a value that is never used: "szMsg"
E:\NOORAN~1\CID.pwn(837) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(862) : warning 219: local variable "str" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(1817) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2159) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2461) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2481) : warning 204: symbol is assigned a value that is never used: "hp"
E:\NOORAN~1\CID.pwn(2510) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2767) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(2818) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(2825) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(2829) : warning 203: symbol is never used: "Drunk"
E:\NOORAN~1\CID.pwn(3069) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3078) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3087) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3096) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3200) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3246) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3254) : warning 202: number of arguments does not match definition
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "x" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "y" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3544) : warning 219: local variable "z" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3563) : warning 219: local variable "szMsg" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(3974) : warning 219: local variable "tmp" shadows a variable at a preceding level
E:\NOORAN~1\CID.pwn(4260) : warning 204: symbol is assigned a value that is never used: "vehicle"
E:\NOORAN~1\CID.pwn(5515) : warning 203: symbol is never used: "Wanted"
Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


2 Errors.
These Errors Comming Now Tell What i do ?  :-\
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Small Help Needed !
« Reply #7 on: March 09, 2012, 11:35:56 am »
replace skinid with skin or dunno, maybe that's how it needs to be :P
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 Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: Small Help Needed !
« Reply #8 on: March 09, 2012, 12:08:56 pm »
Nope By the Way I checked skin and Dunno but again they said Undifined Symbol so now i Type Classid then there is no error i get happy Thank You Very Much Just One thing i don't that how We Can Change the Class Selection Colours ???
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline heekz.shadow

  • LU testers
  • Made Man
  • *
  • Posts: 249
    • View Profile
Re: Small Help Needed !
« Reply #9 on: March 09, 2012, 12:17:27 pm »
You can change class selection colors by changing team number. e.g : 5 is Red, 15 is Blue etc..

But be sure to replace all skinid with classid..
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 Innocent Heart

  • Wiseguy
  • **
  • Posts: 51
  • Crime Investigation Department Owner
    • View Profile
    • Crime Investigaton Department
Re: Small Help Needed !
« Reply #10 on: March 09, 2012, 12:22:16 pm »
ok I will try it..ThankS For your Help,
Conatact Information :
Facebook:-www.facebook.com/dashingjaff
Youtube:-www.youtube.com/NooranScripter

====>My Server Info  < ========
ServerName :- CID-Server
Server Clan :- [D.R] Dakriders
Server Forum :- www.CidServer.tk
Clan Forum :-www.Drgang.tk
=====> DarkRiders Group <=====

Pm Me If U want To be Pro In Scripting !
Those Who Banned my Ip and My Freind's Ip They Are Big Fuckers...!

Offline Mansoor ali

  • Street Thug
  • *
  • Posts: 25
  • I'm Back my old account Works! :D
    • View Profile
Re: Small Help Needed !
« Reply #11 on: April 15, 2012, 08:56:25 pm »
i set this in my script like this but i get 2 errors :'(

[pawn]//==============================================================================
public OnPlayerSpawn( playerid,classid,teamid )
{
   PlayerInfo[ playerid ][ Spawned ] = 1;
   GameTextForPlayerBottom( playerid, "\x10" );
   format( file, sizeof( file ), USERS_FILE, gPlayers[ playerid ] );
   if ( dini_Exists( file ) )
   {
  if ( PlayerInfo[ playerid ][ Logged ] != 1 )
      {
         new string[ 256 ];
         format( string, 256, "Auto_Kill:[ %s ] Reason:[ Failed to login ]", gPlayers[ playerid ] );
         SendClientMessageToAll(COLOR_GREEN,string );
         SetPlayerPos( playerid, -556.0719, -739.7675, 4.7610,0,0 );
      }
      else
      { // player spawned and logged in so we need to set the money
         new cash = dini_Int( file, "Cash" );
         SetPlayerMoney( playerid, cash );
      }
   }
   else SetPlayerMoney( playerid, 0 );
   return 1;
}
   if(( skinid == SKIN_COP ) || ( skinid == SKIN_SWAT ) || ( skinid == SKIN_FBI ) || ( skinid == SKIN_ARMY ))
   {
   SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a law enforcement person.");
   }
   else if(classid == SKIN_CRIMINAL)
   {
   SendClientMessage(playerid,CODE_HERE,"*** You have spawned as a criminal.");
}
//==============================================================================[/pawn]

i get these two errors

[pawn]D:\MANSOOR FILES 8-)\Games\GTA Vice City\Vice City Mp\VC-MP SERVERS\Copy of VCMP SERVER\gamemodes\Pakistan.pwn(437) : error 010: invalid function or declaration
D:\MANSOOR FILES 8-)\Games\GTA Vice City\Vice City Mp\VC-MP SERVERS\Copy of VCMP SERVER\gamemodes\Pakistan.pwn(441) : error 010: invalid function or declaration

2 Errors.[/pawn]

plz help  :-\

Offline Mansoor ali

  • Street Thug
  • *
  • Posts: 25
  • I'm Back my old account Works! :D
    • View Profile
Re: Small Help Needed !
« Reply #12 on: April 16, 2012, 09:36:10 am »
PLZ Scripters help me plz  :-[  :'(