[GameMode] [GM] Moderntopia Roleplay: Los Santos 1.0 (MySQL)
#81

This map is for a samp 0.3a or 0.2.X? I have a problem. If I will turn on my server, server going down [have crash, automaticly turn off]. Here you are a server's log:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3a R7, ©2005-2010 SA-MP Team

[11:17:48] filterscripts = "" (string)
[11:17:48] 
[11:17:48] Server Plugins
[11:17:48] --------------
[11:17:48] Loading plugin: sampmysql
[11:17:48] 
/*************************************************/
/* SAMP-MySQL v0.15 Plugin loaded successfully ! */
/*************************************************/

[11:17:48]  Loaded.
[11:17:48] Loaded 1 plugins.

[11:17:48] 
[11:17:48] Filter Scripts
[11:17:48] ---------------
[11:17:48]  Loaded 0 filter scripts.

[11:17:48] MYSQL: Attempting to connect to server...
[11:17:48] 
Connection to MySQL database: Successfull !
[11:17:48] MYSQL: Database connection established.
Reply
#82

This shouldn't close your server, this means that it will run, if it doesn't run make sure you have converted it from 0.2x to 0.3a

THIS SCRIPT IS 0.2x
Reply
#83

Who have converted Moderntopia 0.3a?

I need this.
Reply
#84

Quote:
Originally Posted by xkniives
This script sucks. It doesn't let me login.
Lolz. Im having the same problem i can reigster and i can try login with the wrong pass. As soon as i enter the right one the server crashes. Anyone know how to fix?
Reply
#85

you have to convert it to 0.3 .... is not allready converted and wil not function with mode 0.3 .
y tested it function grate but on 0.2 .
Reply
#86

Quote:
Originally Posted by Janekk
Who have converted Moderntopia 0.3a?

I need this.
iits not hard to convert just remove / replace what needs to be there to be honest, if you can't figure it out guys, don't even try using SQL scripts, and dont try 0.2x scripts on 0.3a
Reply
#87

Код:
D:\Rockstar Games\GTA San Andreas\gamemodes\mtrpfinal.pwn(9844) : error 017: undefined symbol "SetDisabledWeapons"
D:\Rockstar Games\GTA San Andreas\gamemodes\mtrpfinal.pwn(37873) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
why?
Reply
#88

C:\Users\Mat\Desktop\Our Game Matt\LSLRP\LSLRP\gamemodes\Untitled.pwn(9844) : error 017: undefined symbol "SetDisabledWeapons"
C:\Users\Mat\Desktop\Our Game Matt\LSLRP\LSLRP\gamemodes\Untitled.pwn(37873) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


what do i do im new to this whole scripting thing please
Reply
#89

Quote:
Originally Posted by Ziggy88888
View Post
C:\Users\Mat\Desktop\Our Game Matt\LSLRP\LSLRP\gamemodes\Untitled.pwn(9844) : error 017: undefined symbol "SetDisabledWeapons"
C:\Users\Mat\Desktop\Our Game Matt\LSLRP\LSLRP\gamemodes\Untitled.pwn(37873) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


what do i do im new to this whole scripting thing please
pawn Code:
SetDisabledWeapons(43,44,45);
Remplace By

pawn Code:
//SetDisabledWeapons(43,44,45);
--------------------------------------------------------------------------

pawn Code:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
    return 0;
}
Remplace By

pawn Code:
//public OnPlayerPrivmsg(playerid, recieverid, text[])
//{
    //return 0;
//}
Reply
#90

Quote:
Originally Posted by GroX0r
View Post
pawn Code:
SetDisabledWeapons(43,44,45);
Remplace By

pawn Code:
//SetDisabledWeapons(43,44,45);
--------------------------------------------------------------------------

pawn Code:
public OnPlayerPrivmsg(playerid, recieverid, text[])
{
    return 0;
}
Remplace By

pawn Code:
//public OnPlayerPrivmsg(playerid, recieverid, text[])
//{
    //return 0;
//}

ye he can put this

pawn Code:
//public OnPlayerPrivmsg(playerid, recieverid, text[])
//{
    //return 0;
//}
or delete it
Reply
#91

Good Job!!
Reply
#92

Quote:
Originally Posted by Moderntopia
View Post

IMPORTANT: To compile and run the script on your game server, you're going to need to grab the SA-MP MySQL plugin and include files (by ADreNaLiNe-DJ) from this thread. You also need a working MySQL server, which I expect you to have a basic understanding of already. The database.sql file contains the database structure, just execute the SQL queries in that file on your DB.
this link send me to the home page
Reply
#93

Quote:
Originally Posted by ahmed_master23
View Post
this link send me to the home page
Ye beacouse is a old link
Reply
#94

I install Moderntopia and i have some errors when i compile.

C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 012: invalid function call, not a valid address
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : warning 215: expression has no effect
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 001: expected token: ";", but found ")"
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 029: invalid expression, assumed zero
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Help please.



//---------------------GIVE MATS-----------------
if(strcmp(cmd, "/givemats", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givemats [playerid/PartOfName] [amount]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);

The last is line 11749.(giveplayerid = ReturnUser(tmp)
Reply
#95

can some one just send me everything put together i cant figure out my sql or anything
Reply
#96

Quote:
Originally Posted by Spinningtop5
View Post
can some one just send me everything put together i cant figure out my sql or anything
We can't , couse You need to have your MySql for put in the .pwn file for access.
Reply
#97

Quote:
Originally Posted by GaB1TzZzu
View Post
I install Moderntopia and i have some errors when i compile.

C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 012: invalid function call, not a valid address
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : warning 215: expression has no effect
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 001: expected token: ";", but found ")"
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : error 029: invalid expression, assumed zero
C:\Users\GaB1TzZzu\Desktop\samp03asvr_R8_win32\gam emodes\mtrp-final.pwn(11749) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

Help please.



//---------------------GIVE MATS-----------------
if(strcmp(cmd, "/givemats", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /givemats [playerid/PartOfName] [amount]");
return 1;
}
//giveplayerid = strval(tmp);
giveplayerid = ReturnUser(tmp);

The last is line 11749.(giveplayerid = ReturnUser(tmp)
You need to re-downlaod all files and put the right includes...
Reply
#98

where can i get Utils include?
Reply
#99

Good job
Reply

fatal error 100: cannot read from file: "a_sampmysql" how can i fix this ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)