[Include] [ MIC ] - [ Make It Comfortable ] - [ Redefined ]
#21

Quote:
Originally Posted by Warriors_Tornado
can i make binzes with it?
and how?
is there commands
AddStaticBiz(Float,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
Reply
#22

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
Reply
#23

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.
Reply
#24

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 © 1997-2006, ITB CompuPhase


6 Errors.

i canad it not make sorry
Reply
#25

#include it after the #include <a_samp> stuff.
Reply
#26

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(776 : 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(1612 : 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 © 1997-2006, ITB CompuPhase


14 Errors.
Reply
#27

how can includes help me??
Reply
#28

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.
Reply
#29

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

pawn Код:
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 Код:
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.
Reply
#30

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?
Reply
#31

Hi I found some bugs and got some suggestions =).

Bug: When I add a SetHouseCar for a house which I dont own, it doesnt let me in which is perfect. But when I go in a other vehicle , get out the vehicle and then try to get in again it does NOT let me in. If I try to buy a house after that bug , I also cant get in the assigned housecar even when I'm the right House Owner.

Suggestions:
1. Tell people with a message if they succesfully opened,closed,or changed rent. ( player have to typ /info each time they want to check )
2. A lock/unlock command for a house.
3. A lock/unlock command for the housecar.

I'll keep looking for other bugs/sug, I hope I helped.
Reply
#32

Quote:
Originally Posted by jthebeast2007
They are functions you can use like in a command for example:
Code:
At the top of your script:
new gang[MAX_PLAYERS];

Under OnPlayerCommandText:
new cmd[256],idx;
cmd = strtok(cmdtext,idx);

if(strcmp(cmd,"/gangcreate",true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext,idx);

if(!strlen(tmp)) {
SendClientMessage(playerid,red,"USAGE: /gangcreate [gang name]");
return 1;

new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
CreateGang(tmp,name);
format(string,sizeof(string),"You have successfully created the %s gang",tmp);
SendClientMessage(playerid,yellow,string);
return 1;
}
In Yellow is Kapils function being called. Hope that helps give you the idea!
Still dont get it =[
Reply
#33

if(strcmp("/create",cmdtext,true,7)==0)// Usage: /create <gangname>
{
new name[256];
GetPlayerName(playerid,name,255);
CreateGang(cmdtext[8],name);
}
Reply
#34

Quote:
Originally Posted by Kapil
if(strcmp("/create",cmdtext,true,7)==0)// Usage: /create <gangname>
{
new name[256];
GetPlayerName(playerid,name,255);
CreateGang(cmdtext[8],name);
}
Just put that as a command? It will make a gang when you type /create <name> correct?
Reply
#35

I hate to see my scripts lagging so here is the update with all your suggestion and bug reports implementing.

About Update
- Player Spawns at his House. [ ADDED ]
- /lock and /unlock. [ ADDED ]
- OnPlayerEnterVehicle [ FIXED ]
- Player Interactive Messages [ ADDED ]
- Function Callbacks. [ FIXED ]
- Message Box Script Bug [ FIXED ]

Download at the main post, pliz re-read the main post while downloading.
Reply
#36

Hi Kapil , I immediatly downloaded the new INC , but the bug with the housecar remains.

Bugs
1)
I got this code.
Code:
SetHouse(1239,-776.5655,2765.0203,48.2556,2807.63,-1170.15,1025.57,8,10000);
SetHouseCar(0,580,-781.5827,2748.7913,45.4630,91.4011);
EDIT 2: When I buy this house , I cant enter my housecar. If I enter a random car , get out , and try to get in again it simply wont let me in any random vehicle anymore.

2)
When I buy a biz , lock it , exit the biz , I simply can't get in my biz anymore after I locked. It keeps saying im not the owner , while I am

Suggestions:
- When my house is locked , only the owner can get back in right? Because when I enter my locked house as a owner , its still says : houseislocked! , Maybe it would be better , welcome back owner in your locked house or something.
- it would also be fun to be able to bank money into the housebank account .

BTW , ty for player spawn add, keep up the good work.
Reply
#37

Hey, could someone post some examples on how you got your checkpoints to work? If I have 2 checkpoints like this it will say "THIS IS CHECK 2" on both checkpoints. If I add a third checkpoint it would say "THIS IS CHECK 3" on all.

Code:
if (checkpointid == CHECK1)
{
GameTextForPlayer(playerid,"THIS IS CHECK 1",3000,5);
}
else if (checkpointid == CHECK2)
{
GameTextForPlayer(playerid,"THIS IS CHECK 2",3000,5);
}
It compiles without any errors tho
Reply
#38

hi again, I been testing the mic all morning and i love it but Ive run into a few problems.

BUGS
First problem , is the checkpoint thing that I explained above wich I have not solved yet. (help me if you can)

Second problem is that /close and /open command work outside the biz interiors and when a owner or a normal player (who do not own a biz) use those commands outside the biz ALL cars in the whole game world locks to ALL PLAYERS ( not only the person who do the command ) and I must restart the whole server until they work again. <-- This has been tested with more then one player online.

Third problem, I just tried buying a house and when I was inside the house I typed /buy and I successfully bought the house but then I tried /rent aswell and then on /info I was listed under both OWNER and Teneth(spelling)!

Fourth problem, I do my tests with two PC's ( two players) and when I went into Player A's house with Player B and typed /info it said "biz info" and when I typed /rent it said it was full and finally, when I typed /exit somehow Player B got teleported to outside the BIZ owned by Player A and not the house!


FEATURE REQUESTS
Hey also I'd like to request some features if possible. (I am sorry if the ideas are stupid or been asked for already but I see this as a golden opportunity to ask for these when we have such a great scripter here.)

1, Simple register/login script that kicks you if you spawn without login (maybe add money+location save aswell? )
2, Let house owners upgrade and choose what car model on their house car
3, Let biz owners give other players co-owners so they can open and lock.
4, Banking system + renting system that works like this.
Banking system
Let us place banks like biz (addstaticbank, so we can place them anywhere, so it fits all gamemodes, I don't like the 24-7 banks) but all staticbanks should have same bank account just diffrent locations.
Renting system
And if a player A rents a house from player B, then rent is paid through the bank every hour (even if player A and player B is offline) so, if the rent is at $100, Player A will lose $100 per hour until he run out of money or stop renting. If player A runs out of money the rent will cancel automaticly. Also if player B (the house owner) change rentcost then Player A will be notified (if online) and if Player A is offline he will automaticly stop renting (this is to stop house owners from scamming and emptying other players bank accounts)

House owners should also be able to evict people who rent their house (this means, the house owner can cancel rents)

There should also be a fixed rentcost limit so house owners can't put rent at stupid amounts to scam people!
Reply
#39

Good
Reply
#40

Yo Kapil,

Help pls,

The format for CreateZone is different compared to GangZoneCreate, what cords would i use out of the following

GangZoneCreate(1234.0,431.0,1324.0,341.0);

these are the cords i got using Zen turfs FS

Many Thanks

Carlos

Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)