SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Includes (https://forum.sa-mp.com/forumdisplay.php?f=83)
-   -   [Include] [ MIC ] - [ Make It Comfortable ] - [ Redefined ] (https://forum.sa-mp.com/showthread.php?t=12909)

Kapil 19/09/2007 07:06 PM

[ MIC ] - [ Make It Comfortable ] - [ Redefined ]
 

  • What
    MIC aka Make It Comfortable is a set of includes which provides more
    features to your scripts and helps you making them comfortably.
_________________________________________________

  • In It


    • [ steam ]

      Description:
      steam.inc' includes object steamer, map icon steamer,
      and a checkpoint steamer.

      Principle:
      It maintains the objects and map icons such that they show
      up only if a player is close enough using low draw distance
      for each player and element.

      For checkpoints the steamer checks the closest checkpoint
      to a player and sets them according to it.

      The steamer updates itself every 1/60th part of a minute.

      Functions / Callbacks:
      AddStaticIcon(Float:x,Float:y,Float:z,markertype,c olor);
      AddStaticObject(model,Float:x,Float:y,Float:z,Floa t:rx,Float:ry,Float:rz);
      CreateCheckpoint(Float:x,Float:y,Float:z,Float:siz e);
      DestroyCheckpoint(checkpointid);
      ShowCheckpointForPlayer(playerid,checkpointid);
      HideCheckpointForPlayer(playerid,checkpointid);
      ShowCheckpointForAll(checkpointid);
      HideCheckpointForAll(checkpointid);

      Must Note:
      More the number of objects less should be the draw distance.

      Download:

      http://solidfiles.com/info_imgs/301.jpg

    • [ struct ]

      Description:
      'struct.inc' has a set of functions which makes
      it easy to store and load different types of data.

      Principle:
      It uses a file storage system which enables a server
      to have unlimited subnode and unlimited nodes.

      Functions / Callbacks:
      setDS(...);
      getDS(tostring[],...);
      isDS(...);

      Must Note:
      Though you a node can have unlimited subnodes,
      you might limit them as a string as a max length
      of only 256.

      Download:

      http://solidfiles.com/info_imgs/418.jpg
    • [ crash ]

      Description:
      'crash.inc' is sort of extension with which
      you can easily find when, what, and why did
      your server crashes.

      Principle:
      It converts a script into a format such that
      it can detect every function which is running
      and logs it into a text file.

      Functions / Callbacks:
      none

      Must Note:
      - When you are using it, all the server functions
      and callbacks are logged in to a file 'log.txt'.
      You can find that file in your scriptfiles

      Download:

      http://solidfiles.com/info_imgs/162a.jpg

    • [ callback ]

      Description:
      'callback.inc' are a set of usefull callbacks which
      might be usefull for certain types of gamemodes.

      Principle:
      It assumes all the money given by the player as
      one variable and the money player has currently
      as another variable.
      If the amount of money
      player has is less than the money server
      has given to the player, then that means that the
      player has spent the money on certain places.
      if the amount of money player has is
      greater than the money server has given to
      the player then that means that the player has
      recived money ingame somehow.

      Functions / Callbacks:
      OnPlayerUseTransfender(playerid,amountspent)
      OnPlayerUsePaynSpray(playerid,amountspent)
      OnPlayerEatFood(playerid,amountspent)
      OnPlayerDrinkSprunk(playerid,amountspent)
      OnPlayerUseAmmuNation(playerid,amountspent)
      OnPlayerUseCasino(playerid,amountspent)
      OnPlayerHackMoney(playerid,money)

      Must Note:
      You must not use any filterscript, if you run
      a filterscript makesure it doesnt use GivePlayerMoney
      or ResetPlayerMoney functions.

      Download:

      http://solidfiles.com/info_imgs/29d.jpg
_________________________________________________
  • Installation

    - Once you have downloaded the file you wanted, you will need to extract them into your 'Server/pawno/include/'.
    - Open, your gamemode or the script you to install and add '#include <what ever u have downloaded>' at the top.
    - Compile It, to makesure they are compatible with your gamemode( If it doesnt compile post the errors in this topic ).

    Note: When you have downloaded more than one of 'MIC Redifined ' your includes
    should follow this pattern.

    #include <struct>
    #include <callback>
    #include <steam>
    #include <crash>
_________________________________________________
  • Examples

    [ struct ]

    setDS(playerName,WeaponID_string,Ammos_string);

    ammos = strval( getDS(playerName,WeaponID_string) );

    if(isDS(houseID,"Tenents",playerName))


    [ callback ]

    public OnPlayerUsePaynSpray(playerid,amountspent)
    {
    GivePlayerMoney(playerid,amountspent); // in this case, pay n sprays are free
    }



_________________________________________________
_________________________________________________
_________________________________________________[*]Affiliates
  • MIC -
    • 'Struct' - Save / Load data with flexible features.
    • 'Steam' - Stream map icons, objects, checkpoints at once.
    • 'Crash' - Detects when, why, who and how your server crashed.
    • 'Callback' - Triggers Single-Player events into your script.
  • CMN - Stop defending cheaters, its time to attack them.
  • KIHC - Build houses in the most easiest way ever possible.
  • MD - High quality user interferenced ingame map editing tool.

kc 19/09/2007 07:21 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
sweeeet!!! That sounds awesome. Downloading now...

nate660 19/09/2007 07:30 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
OMG!!! KIBC i was waiting on that for 5 weeks now thanks alot kapil your the best

Alejandro 19/09/2007 07:36 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
oh this is dope... i gotta scope this out. thanks kapil.

Kapil 19/09/2007 07:58 PM

Usage
 
------------------------------------------------------------------------

SetPlayerCheckPoint(playerid,Float:x,Float:y,Float :z,Float:size)

Float:x - x co-ordinate of the checkpoint position.
Float:y - y co-ordinate of the checkpoint position.
Float:z - z co-ordinate of the checkpoint position.

returns - checkpointid.

E.G
new cpid = SetPlayerCheckPoint(playerid,134.244,323.4554.64.4 44);

-------------------------------------------------------------------

strcut(string[],substring[])


string - the string which u want to remove a substring.
substring - the part of string which u want to remove.

E.G
strcut(string,"king");

-------------------------------------------------------------------

fline(File:handle,line)

File:handle - the file handler which u have used to open the file.
line - the line number which you want to seek.

E.G
fline(handler,23);

--------------------------------------------------------------------

AddStaticHouse(Float:x,Float:y,Float:z,Float:ix,Fl oat:iy,Float:iz,ii)

Float:x - the x co-ordinate of the house.
Float:y - the y co-ordinate of the house.
Float:z - the z co-ordinate of the house.
Float:ix - the ix co-ordinate of interior of the house.
Float:iy - the iy co-ordinate of interior of the house.
Float:iz - the iz co-ordinate of interior of the house.
ii - the interior id of interior of the house.

returns - houseid

E.G
AddStaticHouse(2312.233,233.323,3245.54234,43.4656 ,235.2214,123.5668,4);

---------------------------------------------------------------------

AddStaticBiz(Float:x,Float:y,Float:z,Float:ix,Floa t:iy,Float:iz,ii)

Float:x - the x co-ordinate of the biz.
Float:y - the y co-ordinate of the biz.
Float:z - the z co-ordinate of the biz.
Float:ix - the ix co-ordinate of interior of the biz.
Float:iy - the iy co-ordinate of interior of the biz.
Float:iz - the iz co-ordinate of interior of the biz.
ii - the interior id of interior of the biz.

returns - bizid

E.G
AddStaticBiz(2312.233,233.323,3245.54234,43.4656,2 35.2214,123.5668,4);

--------------------------------------------------------------------

EnableBlockAmmu(toggle)

toggle - 1 if yes , 0 if no

E.G
EnableBlockAmmu(1);

---------------------------------------------------------------------

MakeAmmu(slot1,slot2,slot3,slot4,slot5,slot6,slot7 )

slot1 - the first menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot2 - the second menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot3 - the third menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot4 - the four menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot5 - the five menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot6 - the six menu row in ammu-nation menu.( 1 if enable, 0 if disable)
slot7 - the seven menu row in ammu-nation menu.( 1 if enable, 0 if disable)

returns - ammuid

E.G
MakeAmmu(1,1,1,1,1,0,0)

-------------------------------------------------------------

SetWeaponCost(ammuid,weaponid,cost)

weaponid - It can be determined by xy
where x is the row in the main ammu menu
and y is the row in the second ammu menu.
E.G
SetWeaponCost(ammu1,11,435);

---------------------------------------------------------------

EnableChatSystem(toggle)

toggle - 1 if yes, 0 if no.

E.G
EnableChatSystem(1);

---------------------------------------------------------------

SavePlayer(playerid,info[],value[])

info - is the information about the player.
value - is the value for that particular informatin.

E.G
SavePlayer(playerid,"Health","12.55");

---------------------------------------------------------------

LoadPlayer(playerid,info[],value[])

info - is the information about the player.
value - is the value for that particular informatin.

returns - 1 if info found, 0 if not found.

E.G
LoadPlayer(playerid,"Health",string);

---------------------------------------------------------------

SaveProperty(name[],info[],value[])

name - name of the property.
info - is the information about the player.
value - is the value for that particular informatin.

E.G
SaveProperty("Deaths","Shreyon","3");

---------------------------------------------------------------

LoadProperty(name[],info[],value[])

name - name of the property.
info - is the information about the player.
value - is the value for that particular informatin.

returns - 1 if found, 0 if not found.

E.G
LoadProperty("Deaths,"Shreyon",string);


-------------------------------------------------------------------

ToggleClock(toggle)

toggle - 1 if yes, 0 if no.

E.G
ToggleClock(1);

-------------------------------------------------------------------

EnableFuelSystem(toggle)

toggle - 1 if yes, 0 if no.

E.G
EnableFuelSystem(1);

-------------------------------------------------------------------

nate660 19/09/2007 08:03 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
Are you serious an addstatichouse thats sweet Well all and all i think its one of the greatest releases i have seen for a while

Alejandro 19/09/2007 08:08 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
how does the addstatichouse work? like yea.. how does it work?

El0vric 19/09/2007 08:15 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
Sweet... Will try it.

Kapil 19/09/2007 08:22 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
Quote:

Originally Posted by Alejandro
how does the addstatichouse work? like yea.. how does it work?

I am creating a page on wiki, please be patient, I will give u the link.

EDIT: Click ME

Pentel 19/09/2007 09:21 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
Thanks a lot! Great :). Are you ever going to add something like in KIHC with /build :)?

almighty 19/09/2007 11:06 PM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.1 BETA
 
when i agree the mic think and i try to compile it give me this errors...
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(376) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(615) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(631) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(640) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(649) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(759) : warning 235: public function lacks forward declaration (symbol "OnPlayeFeeerBiz")
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(777) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1162) : error 017: undefined symbol "GetPlayervalues"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1163) : error 017: undefined symbol "value_SECONDARY_ATTACK"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1161) : warning 203: symbol is never used: "lr"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1161) : warning 203: symbol is never used: "ud"
C:\Users\Walter\Desktop\Nueva carpeta\pawno\include\MIC.inc(1359) : warning 200: symbol "IsPlayerAllowedInHouseInHouseIn" is truncated to 31 characters
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1040) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1042) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1048) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1050) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1056) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1058) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1064) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1066) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1072) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1074) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1086) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1102) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1108) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1119) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1131) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1140) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1146) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1149) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1180) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1206) : warning 217: loose indentation
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1032) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1031) : warning 203: symbol is never used: "idx"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1031) : warning 203: symbol is never used: "moneys"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1030) : warning 204: symbol is assigned a value that is never used: "cmd"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1027) : warning 203: symbol is never used: "playermoney"
C:\Users\Walter\Desktop\Nueva carpeta\gamemodes\rpg.pwn(1926) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
how to fix them? :D

Kapil 20/09/2007 03:19 AM

Re: INC] Make It Comfortable - [ M.I.C ] version 0.2 BETA
 
sorry guys It was my mistake,I have uploaded the set of old files 0.1 BETA version updated to 0.2 BETA, so re-downlaod it.

EDIT: Updated to 0.21 BETA, now it has Administrative functions too.(mic_admin)

HAVE FUN !

[LSB]TheGame 20/09/2007 10:52 AM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.21 BETA
 
koo koo

Kapil 20/09/2007 11:54 AM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Updated To 0.23 BETA

-o Menu Sizes and Positions fixed.
-o House and Biz icons have been changed.
-o False server Logging was fixed.
-o IsPlayerAllowedInHouseInHouse was changed to IsPlayerAllowedInHouse
-o Color defines have been removed, as they were causing errors.


[LSB]TheGame 20/09/2007 11:57 AM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
isit ok to use now?

Kapil 20/09/2007 12:09 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by [LSB
TheGame ]
isit ok to use now?

yes u can download it and use it, its not like KIHC that u need to rebuild everything after every update, after a update u can just install it and no other changes are needed, everything are upgraded automatically.

[LSB]TheGame 20/09/2007 12:14 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
koo Kapil so you dont add houses you just add the filterscript then its done?

Kapil 20/09/2007 12:34 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by [LSB
TheGame ]
koo Kapil so you dont add houses you just add the filterscript then its done?

yes all u need to do is get the co-ordinates and thats all, and a house is waiting for U !!!!

by the by this is a INCLUDES !!! LIBRARY OF FUNCTIONS !!! not FILTERSCRIPT !!!

[LSB]TheGame 20/09/2007 12:37 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
coordinates of the houses

Warriors_Tornado 20/09/2007 12:50 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
can i make binzes with it?
and how?
is there commands

Kapil 20/09/2007 12:56 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by Warriors_Tornado
can i make binzes with it?
and how?
is there commands

AddStaticBiz(Float:x,Float:y,Float:z,Float:ix,Floa t:iy,Float:iz,ii);

wiki ! can help u more about the parameters !

EDIT: Please note the WIKI page has been edited and changed now, this is the link for the new WIKI

Warriors_Tornado 20/09/2007 02:02 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
but why in your script are ini files only
when i wil put in server and go in there wil some comands??

and about that biznes
i understand that where i want bines i go press/save get x,y,z and ad add static biz and thats all
i want that others can buy and earn money. they go to to the biznes house enters in cp and press withdraw or other comand

Kapil 20/09/2007 02:31 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

but why in your script are ini files only
this isnt a gamemode or filterscript it is includes

Ok guys, the main post have been updated, pliz have a look over it.

steven 20/09/2007 02:45 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(54) : error 017: undefined symbol "MAX_PLAYERS"
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(54) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : error 017: undefined symbol "SetPlayerCheckpoint"
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : warning 215: expression has no effect
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(105) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

i canad it not make sorry

IJzerenRita 20/09/2007 02:50 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
#include it after the #include <a_samp> stuff.

steven 20/09/2007 02:56 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by IJzerenRita
#include it after the #include <a_samp> stuff.

ok i hafe it done!


C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(447) : error 004: function "onplayerselectedmenurow" is not implemented
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(717) : error 004: function "onplayerpickuppickup" is not implemented
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(757) : error 004: function "onplayerexitedmenu" is not implemented
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(1022) : warning 209: function "SavePlayer" should return a value
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(1187) : warning 219: local variable "rx" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(1187) : warning 219: local variable "ry" shadows a variable at a preceding level
C:\Documents and Settings\Administrator\Bureaublad\server ran\server\pawno\include\MIC.inc(1187) : warning 219: local variable "rz" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(264) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(264) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(265) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(265) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(6506) : error 021: symbol already defined: "LoadProperty"
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(6799) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(6799) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(6799) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(7767) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(7767) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(7768) : error 021: symbol already defined: "LoadPlayer"
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(7823) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(7823) : error 025: function heading differs from prototype
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(7824) : error 021: symbol already defined: "SavePlayer"
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(15889) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(15889) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(15889) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(16128) : warning 219: local variable "time" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(18360) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(18373) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(18393) : warning 202: number of arguments does not match definition
C:\DOCUME~1\ADMINI~1\BUREAU~1\SERVER~1\server\GAME MO~1\penls.PWN(18411) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


14 Errors.

Warriors_Tornado 20/09/2007 02:57 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
how can includes help me??

Kapil 20/09/2007 03:10 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

14 Errors
welll try opening a new .pwn and include MIC and check whether those errors still retain.

Quote:

how can includes help me??
read the main post, it has the answer for your question.

Pentel 20/09/2007 03:30 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Without #include <MIC> my script compiles without errors or warnings, after it im getting loads of warnings and 3 errors.

pawn Code:
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\MIC.inc(447) : error 004: function "onplayerselectedmenurow" is not implemented
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2014) : error 021: symbol already defined: "LoadPlayer"
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2037) : warning 209: function "LoadPlayer" should return a value
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2040) : error 021: symbol already defined: "SavePlayer"
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2488) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2488) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2559) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2559) : warning 202: number of arguments does not match definition
... MORE AND MORE "number of arguments does not match definition"

What should I do?
When compiling a new script (pressing NEW):
pawn Code:
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Visual/YSI_pickups.own(252) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Visual/YSI_pickups.own(349) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(768) : warning 235: public function lacks forward declaration (symbol "Property_OnPlayerEnterArea")
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(901) : warning 235: public function lacks forward declaration (symbol "Property_OnPlayerEnterCP")
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(1741) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(1750) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_classes.own(363) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\mic.inc(112) : error 021: symbol already defined: "OnGameModeInit"
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\mic.inc(173) : error 004: function "ongamemodeinit" is not implemented
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\mic.inc(174) : warning 209: function "OnGameModeInit" should return a value
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

polgast 20/09/2007 03:50 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Ok so i studied youre work and its amazing! But just a tiny problem i cant figure out how to get these Float:ix,Float:iy,Float:iz,ii can you get these from just debugin and writing /save or do you have to get then an other way?

Kapil 20/09/2007 03:59 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by Pentel
Without #include <MIC> my script compiles without errors or warnings, after it im getting loads of warnings and 3 errors.

pawn Code:
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\MIC.inc(447) : error 004: function "onplayerselectedmenurow" is not implemented
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2014) : error 021: symbol already defined: "LoadPlayer"
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2037) : warning 209: function "LoadPlayer" should return a value
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2040) : error 021: symbol already defined: "SavePlayer"
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2488) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2488) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2559) : warning 202: number of arguments does not match definition
C:\DOCUME~1\Melvin\BUREAU~1\CLAIVE~1\GAMEMO~1\Claiver.pwn(2559) : warning 202: number of arguments does not match definition
... MORE AND MORE "number of arguments does not match definition"

What should I do?
When compiling a new script (pressing NEW):
pawn Code:
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Visual/YSI_pickups.own(252) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Visual/YSI_pickups.own(349) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(768) : warning 235: public function lacks forward declaration (symbol "Property_OnPlayerEnterArea")
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(901) : warning 235: public function lacks forward declaration (symbol "Property_OnPlayerEnterCP")
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(1741) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_properties.own(1750) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\YSI/Gamemode/YSI_classes.own(363) : warning 219: local variable "time" shadows a variable at a preceding level
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\mic.inc(112) : error 021: symbol already defined: "OnGameModeInit"
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\mic.inc(173) : error 004: function "ongamemodeinit" is not implemented
C:\Documents and Settings\Melvin\Bureaublad\SAMP 2.0 SOH\pawno\include\mic.inc(174) : warning 209: function "OnGameModeInit" should return a value
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

it looks like u r using YSI, which is also a another includes, for now all u need to do is to decide whether u will use YSI or MIC.

Quote:

Ok so i studied youre work and its amazing! But just a tiny problem i cant figure out how to get these Float:ix,Float:iy,Float:iz,ii can you get these from just debugin and writing /save or do you have to get then an other way?
these are the cords to which the player will be teleported when he presses "Enter" in the menu. U can get interior id and cords from wiki, and many other sources too.


steven 20/09/2007 04:18 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
[quote=Kapil ]
Quote:

14 Errors
welll try opening a new .pwn and include MIC and check whether those errors still retain.

i new .pwn working it good and now? i wil it on me gamemode!

Pentel 20/09/2007 04:42 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by Kapil

it looks like u r using YSI, which is also a another includes, for now all u need to do is to decide whether u will use YSI or MIC.

Yes only in the new script. In my normal script I use:
#include <a_samp>
//#include <MIC>
#include <dudb>
#include <time>
#include <file>
#include <float>

Kapil 20/09/2007 05:36 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by Pentel
Quote:

Originally Posted by Kapil

it looks like u r using YSI, which is also a another includes, for now all u need to do is to decide whether u will use YSI or MIC.

Yes only in the new script. In my normal script I use:
#include <a_samp>
//#include <MIC>
#include <dudb>
#include <time>
#include <file>
#include <float>

#include <dudb> - data storage system ( SaveProperty, LoadProperty )in MIC

#include <time> |
#include <file> |-- I thought these came with a_samp
#include <float> |

-o The problem was not with any of the above includes anyway.
-o I found that your code doesnt have the function OnPlayerSelectedMenuRow(playerid,row), add it.
-o I think you have a function named LoadPlayer(...), rename it to something else(like LoadPlayerEx ).

and you are done..ready to Experience the FIRE of MIC.

zpectum 20/09/2007 06:07 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 


This is an Example script of -> http://pastebin.ca/704938

How do i get the co-ordinate of interior of the house ?

Is that enough for add some house to my server ?

sry for my english . :roll:

IJzerenRita 20/09/2007 06:29 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Why is OnGameModeInit defined in MIC.inc? That way you cannot use MIC in an existing game mode (or filter script) without making changes to it. This is causing the compilation problems stated above.

Let the user decide when to initialize MIC by calling MICInit() or something.

fiordas 20/09/2007 06:32 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
AddStaticHouse(2312.233,233.323,3245.54234,43.4656 ,235.2214,123.5668,4);

Wheres that house? :s

zpectum 20/09/2007 06:40 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by fiordas
AddStaticHouse(2312.233,233.323,3245.54234,43.4656 ,235.2214,123.5668,4);

Wheres that house? :s

may be in the LS , but i dont know the Exactly the co-ordinate of interior of that house is !

fiordas 20/09/2007 06:47 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

Originally Posted by zpectum
Quote:

Originally Posted by fiordas
AddStaticHouse(2312.233,233.323,3245.54234,43.4656 ,235.2214,123.5668,4);

Wheres that house? :s

may be in the LS , but i dont know the Exactly the co-ordinate of interior of that house is !

Can you say more exactly where is it?

Kapil 20/09/2007 07:34 PM

Re: INC] - [ Make It Comfortable ] - M.I.C ] - version 0.23 BETA
 
Quote:

How do i get the co-ordinate of interior of the house ?
You can get them from HERE.

Quote:

Why is OnGameModeInit defined in MIC.inc?
forget about that, I have used a trick so that OnGameModeInit can be used twice, so u need not worry about that. And its not only for OnGameModeInit but all the functions.

Quote:

AddStaticHouse(2312.233,233.323,3245.54234,43.4656 ,235.2214,123.5668,4);
Wheres that house?
the house is exactly where 2312.233,233.323,3245.54234 denote on map.



All times are GMT. The time now is 09:30 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.