[GameMode] [2.1] RPG Mode! - by TommyLR (FIXED, and now I'm not joking ^_^)
#1


2.1 FIXED
Watch the demo!(that's an old version video)

Special Thanks to:
Pixels^ - Fuel 'n' speedometer system
Dracoblue - /register 'n' /save commands
Nitroglycerine - Zone system

Simon - skinsel from the Debug FS
Kapil - housing system


Description:
A gamemode placed in LS based only in DM.
Remember to make a "scriptfiles" folder into the main directory!

Includes (pwn file):
Код:
#include <a_samp>
#include <core>
#include <float>
#include <file>
#include <dudb>
#include <dini>
#include <dutils>
#include <KIHC>
YOU HAVE TO USE THIS KIHC (regular)
other includes
Features:
-Register and Login commands for save the stats.
-Arsenal system for buy on-spawn weapons.
-Teams.
-Wanted Level.
-Fuel system.
-Speedometer system.
-Taxi job.
-Cop job.
-Bank.
-Missions. (work in progress, they may bug the game!)

Download the source and the compiled file!

Got few questions? Join the IRC channel!
/query TommyLR @ irc.gtanet.com

Log:
Код:
- Upgraded to 2.1:
fixed the ugly rendering done by kspeed (disabling the 50% of the mode functions)

- Upgraded to 2.0:
 Some bugs fixed.
 Converted and edited to 0.2 sa-mp server.
 Clock real-time added.
 Housing feature added.
 Skin Selection system changed. (thx to Kapil)
 Chat rendering made better.

- Upgraded to 1.4:
 Some bugs fixed.
 Windows Server crashing fixed.
 Non working commands leaved.
 Added feature "buyskin"

- Upgraded to 1.3c:
 Some bugs fixed.
 Wanted Level upgraded with some new features.
 Non-Working missions leaved.

- Upgraded to 1.3b:
 Some bugs fixed.
 Protection added to police's vehicles.
 Mission Kill him fixed.
 CallTaxi edited (thx to aimarejada).

- Upgraded to 1.3:
 Cop advising for suspects.
 Zone system.
 Some bugs fixed.

- Upgraded to 1.2 adding missions:
 Steal The Vehicle!
 Kill him!
 and fixing some vehicle spawn.

- Upgraded to 1.1 adding the bank feature.

This gamemode hasn't got copyright. The only thing that I ask is to do not leave my nickname from it. Thanks and enjoy...

__________________________________________________ _____

Try out my B4D BASE!

http://forum.sa-mp.com/index.php?top...4857#msg234857

THE BEST TRAINING GAMEMODE
Reply
#2

hi... when i tried to compile, i got this error:
Код:
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(85) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(85) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(85) : warning 215: expression has no effect
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(86) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(86) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(86) : warning 215: expression has no effect
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(87) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(87) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(87) : warning 215: expression has no effect
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(88) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(88) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(88) : warning 215: expression has no effect
Pawn compiler 3.0.3367			Copyright © 1997-2005, ITB CompuPhase


8 Errors.
Reply
#3

update your Dini.inc

update your dudb.inc

and whatever written with "#include"
Reply
#4

well i downloaded all what was in #include from http://dracoblue.net/index.php?id=4&...10&Language=en and copied it into PAWNO`s include map... and i got the same errors

maybe you could also upload amx script, if it`s not so hard...
Reply
#5

Quote:
Originally Posted by cesedy
hi... when i tried to compile, i got this error:
Код:
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(85) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(85) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(85) : warning 215: expression has no effect
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(86) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(86) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(86) : warning 215: expression has no effect
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(87) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(87) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(87) : warning 215: expression has no effect
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(88) : error 017: undefined symbol "dUserSetFLOAT"
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(88) : error 029: invalid expression, assumed zero
C:\Documents and Settings\cesedy\Desktop\New Folder\gta\rpg.pwn(88) : warning 215: expression has no effect
Pawn compiler 3.0.3367			Copyright © 1997-2005, ITB CompuPhase


8 Errors.
dUserSetFloat isn't implemented in defauld dudb yet.

Tommy can you post what you made into the dudb topic and I'll add it.
Reply
#6

ok... wait.

EDIT: you mean this:

Код:
#define dUserSetFLOAT(%1).( udb_UserSetFLOAT(%1,
#define dUserFLOAT(%1).( udb_UserFLOAT(%1,

public udb_UserSetFLOAT(nickname[],key[],Float:value) {
 new fname[MAX_STRING];
 format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
 return dini_FloatSet(fname,key,value);
}

public Float:udb_UserFLOAT(nickname[],key[]) {
 new fname[MAX_STRING];
 format(fname,sizeof(fname),"%s.dudb.sav",udb_encode(nickname));
 return dini_Float(fname,key);
}
Reply
#7

thanks.. now i compiled successfuly
Reply
#8

Quote:
Originally Posted by cesedy
thanks.. now i compiled successfuly
Reply
#9

pawn Код:
public OnVehicleSpawn(vehicleid){
Gas[vehicleid] = gFuel[random(sizeof(gFuel))];
}
OnVehicleSpawn is broken as of what i have heard. Try using
pawn Код:
Gas[vehicleid] = gFuel[random(sizeof(gFuel))];
in OnGameModeInit, it will have the same effect.
Reply
#10

i updated the dudb relese - float-management included by default
Reply


Forum Jump:


Users browsing this thread: