SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 31/01/2020, 10:17 PM   #1001
cuber
Gangsta
 
cuber's Avatar
 
Join Date: Oct 2016
Posts: 850
Reputation: 213
Default Re: South Central Roleplay 0.20

Quote:
Originally Posted by Runn3R View Post
Damn, I can remember when it was first released. I've learned a lot from this script mostly formatting my code right. Everyone appreciates a clean code in every programming language.

And yeah...
Thanks for publishing it which was sadly caused by an unfortunate chain of events but at least people like me learned some stuff.

Cheers.

And yeah Emmet is the boss haha wonder if hes still coding.
This is gold ^.

@Xlithan - Good luck man.
__________________


A new Heavy Roleplay server.

Forums | Discord

cuber is offline   Reply With Quote
Old 01/02/2020, 01:38 AM   #1002
Xlithan
Big Clucker
 
Join Date: May 2012
Posts: 69
Reputation: 10
Default Re: South Central Roleplay 0.20

Find Entrance_Nearest procedure. Under that procedure add:

Code:
Exit_Nearest(playerid)
{
    for (new i = 0; i != MAX_ENTRANCES; i ++) if (EntranceData[i][entranceExists] && IsPlayerInRangeOfPoint(playerid, 2.5, EntranceData[i][entranceInt][0], EntranceData[i][entranceInt][1], EntranceData[i][entranceInt][2]))
	{

		if (GetPlayerInterior(playerid) == EntranceData[i][entranceInterior] && GetPlayerVirtualWorld(playerid) == EntranceData[i][entranceWorld]) {
			return i;
		}
	}
	return -1;
}
Find the following line of code:

Code:
if ((id = Entrance_Inside(playerid)) != -1 && IsPlayerInRangeOfPoint(playerid, 2.5, EntranceData[id][entranceInt][0], EntranceData[id][entranceInt][1], EntranceData[id][entranceInt][2]))
Comment out that If Statement and then under that section, add the following:

Code:
		if ((id = Exit_Nearest(playerid)) != -1 && IsPlayerInRangeOfPoint(playerid, 2.5, EntranceData[id][entranceInt][0], EntranceData[id][entranceInt][1], EntranceData[id][entranceInt][2]))
	    {
	        if (EntranceData[id][entranceCustom])
				SetPlayerPosEx(playerid, EntranceData[id][entrancePos][0], EntranceData[id][entrancePos][1], EntranceData[id][entrancePos][2]);

			else
			    SetPlayerPosEx(playerid, EntranceData[id][entrancePos][0], EntranceData[id][entrancePos][1], EntranceData[id][entrancePos][2]);

			SetPlayerFacingAngle(playerid, EntranceData[id][entrancePos][3] - 180.0);

			SetPlayerInterior(playerid, EntranceData[id][entranceExterior]);
			SetPlayerVirtualWorld(playerid, EntranceData[id][entranceExteriorVW]);

			SetCameraBehindPlayer(playerid);
			PlayerData[playerid][pEntrance] = Entrance_GetLink(playerid);
			return 1;
	    }
This should work. There's probably a better way to simplify this, but this is what works for me.
Xlithan is offline   Reply With Quote
Old 08/05/2020, 10:18 PM   #1003
JordanTyler
Little Clucker
 
Join Date: Apr 2015
Posts: 2
Reputation: 0
Default Re: South Central Roleplay 0.20

Hi everyone i got these errors please help, i make all the maj of the plugins.

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.DL-R1, (C)2005-2018 SA-MP Team

[00:20:05] filterscripts = "" (string)
[00:20:05]
[00:20:05] Server Plugins
[00:20:05] --------------
[00:20:05] Loading plugin: crashdetect.dll
[00:20:05] CrashDetect plugin 4.19.4
[00:20:05] Loaded.
[00:20:05] Loading plugin: nativechecker.dll
[00:20:05] Loaded.
[00:20:05] Loading plugin: streamer.dll
[00:20:05]

*** Streamer Plugin v2.9.4 by Incognito loaded ***

[00:20:05] Loaded.
[00:20:05] Loading plugin: sscanf.dll
[00:20:05]

[00:20:05] ===============================

[00:20:05] sscanf plugin loaded.

[00:20:05] Version: 2.8.1

[00:20:05] (c) 2012 Alex "******" Cole

[00:20:05] ===============================

[00:20:05] Loaded.
[00:20:05] Loading plugin: mysql.dll
[00:20:05] >> plugin.mysql: R41-4 successfully loaded.
[00:20:05] Loaded.
[00:20:05] Loading plugin: whirpool.dll
[00:20:05] Failed.
[00:20:05] Loaded 5 plugins.

[00:20:05]
[00:20:05] Filterscripts
[00:20:05] ---------------
[00:20:05] Loaded 0 filterscripts.

[00:20:05] Error: Function not registered: 'SSCANF_Init'
[00:20:05] Error: Function not registered: 'SSCANF_IsConnected'
[00:20:05] Error: Function not registered: 'SSCANF_Join'
[00:20:05] Error: Function not registered: 'SSCANF_Leave'
[00:20:05] Error: Function not registered: 'Streamer_CallbackHook'
[00:20:05] Error: Function not registered: 'mysql_connect'
[00:20:05] Error: Function not registered: 'mysql_errno'
[00:20:05] Error: Function not registered: 'WP_Hash'
[00:20:05] Error: Function not registered: 'mysql_tquery'
[00:20:05] Error: Function not registered: 'cache_get_field_content'
[00:20:05] Error: Function not registered: 'mysql_escape_string'
[00:20:05] Error: Function not registered: 'cache_get_data'
[00:20:05] Error: Function not registered: 'cache_affected_rows'
[00:20:05] Error: Function not registered: 'cache_insert_id'
[00:20:05] Error: Function not registered: 'IsValidDynamicObject'
[00:20:05] Error: Function not registered: 'DestroyDynamicObject'
[00:20:05] Error: Function not registered: 'CreateDynamicObject'
[00:20:05] Error: Function not registered: 'GetDynamicObjectPos'
[00:20:05] Error: Function not registered: 'IsValidDynamicMapIcon'
[00:20:05] Error: Function not registered: 'DestroyDynamicMapIcon'
[00:20:05] Error: Function not registered: 'CreateDynamicMapIcon'
[00:20:05] Error: Function not registered: 'SetDynamicObjectMaterial'
[00:20:05] Error: Function not registered: 'SetDynamicObjectMaterialText'
[00:20:05] Error: Function not registered: 'IsValidDynamic3DTextLabel'
[00:20:05] Error: Function not registered: 'DestroyDynamic3DTextLabel'
[00:20:05] Error: Function not registered: 'CreateDynamic3DTextLabel'
[00:20:05] Error: Function not registered: 'IsValidDynamicPickup'
[00:20:05] Error: Function not registered: 'DestroyDynamicPickup'
[00:20:05] Error: Function not registered: 'CreateDynamicPickup'
[00:20:05] Error: Function not registered: 'MoveDynamicObject'
[00:20:05] Error: Function not registered: 'cache_get_row'
[00:20:05] Error: Function not registered: 'sscanf'
[00:20:05] Error: Function not registered: 'UpdateDynamic3DTextLabelText'
[00:20:05] Error: Function not registered: 'EditDynamicObject'
[00:20:05] Error: Function not registered: 'CreateDynamicPickupEx'
[00:20:05] Error: Function not registered: 'CreateDynamicObjectEx'
[00:20:05] Error: Function not registered: 'SetDynamicObjectPos'
[00:20:05] Error: Function not registered: 'Streamer_ToggleIdleUpdate'
[00:20:05] Error: Function not registered: 'SetDynamicObjectRot'
[00:20:05] Error: Function not registered: 'AttachDynamicObjectToVehicle'
[00:20:05] *** Streamer Plugin: Include file version (0x27101) does not match plugin version (0x294) (script might need to be recompiled with the correct include file).
[00:20:05] [debug] Run time error 19: "File or function is not found"
[00:20:05] [debug] WP_Hash
[00:20:05] [debug] cache_get_field_content
[00:20:05] [debug] cache_get_data
[00:20:05] [debug] cache_get_row
[00:20:05] [debug] Run time error 19: "File or function is not found"
[00:20:05] [debug] WP_Hash
[00:20:05] [debug] cache_get_field_content
[00:20:05] [debug] cache_get_data
[00:20:05] [debug] cache_get_row
[00:20:05] Script[gamemodes/roleplay.amx]: Run time error 19: "File or function is not found"
[00:20:05] Number of vehicle models: 0
JordanTyler is offline   Reply With Quote
Old 09/05/2020, 02:00 AM   #1004
tysanio
Big Clucker
 
tysanio's Avatar
 
Join Date: May 2012
Location: At my House Duh..
Posts: 147
Reputation: 22
Default Re: South Central Roleplay 0.20

] *** Streamer Plugin: Include file version (0x27101) does not match plugin version (0x294)

[00:20:05] Loading plugin: mysql.dll
[00:20:05] >> plugin.mysql: R41-4 successfully loaded.


first recompile the gamemode with the lastest include streamer

secondo its take mysql r39.5 not 41-4
__________________

Did i ever tell you the définitions of insanity?
tysanio is offline   Reply With Quote
Old 11/05/2020, 06:24 AM   #1005
alanhutch
Huge Clucker
 
alanhutch's Avatar
 
Join Date: Nov 2010
Location: Florence, Italy. Reputation: 9999
Posts: 363
Reputation: 8
Default Re: South Central Roleplay 0.20

very nice
alanhutch is offline   Reply With Quote
Old 12/05/2020, 11:13 AM   #1006
JasonTheMan
Big Clucker
 
JasonTheMan's Avatar
 
Join Date: Apr 2020
Posts: 57
Reputation: 4
Default Re: South Central Roleplay 0.20

Not bad
__________________
Owner/Founder - DesignUX
New Project - RedWood High
JasonTheMan is offline   Reply With Quote
Old 13/05/2020, 08:18 AM   #1007
CrunchxNoy
Little Clucker
 
CrunchxNoy's Avatar
 
Join Date: Nov 2015
Posts: 30
Reputation: 1
Default Re: South Central Roleplay 0.20

Very good script. Its all dynamic & elegant. I like it
__________________
CrunchXnoy
CrunchxNoy is offline   Reply With Quote
Old 13/05/2020, 03:56 PM   #1008
Adib23704
Little Clucker
 
Adib23704's Avatar
 
Join Date: Mar 2019
Location: Dhaka, Bagladesh
Posts: 4
Reputation: 0
Default Re: South Central Roleplay [CURRENT - 0.21 BUILD]

I am getting these errors.

Code:
pawno\include\eSelection.inc(202) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
pawno\include\eSelection.inc(203) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(224) : error 017: undefined symbol "PlayerTextDrawSetPreviewVehCol"
pawno\include\eSelection.inc(230) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(406) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
pawno\include\eSelection.inc(553) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
pawno\include\eSelection.inc(558) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(564) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(568) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
gamemodes\roleplay.pwn(2254) : error 017: undefined symbol "foreach"
gamemodes\roleplay.pwn(2254) : error 029: invalid expression, assumed zero
gamemodes\roleplay.pwn(2254) : error 017: undefined symbol "i"
gamemodes\roleplay.pwn(2254) : fatal error 107: too many error messages on one line
Adib23704 is offline   Reply With Quote
Old 13/05/2020, 04:06 PM   #1009
Proxus
Huge Clucker
 
Proxus's Avatar
 
Join Date: May 2018
Location: United Kingdom
Posts: 462
Reputation: 20
Default Re: South Central Roleplay [CURRENT - 0.21 BUILD]

Quote:
Originally Posted by Adib23704 View Post
I am getting these errors.

Code:
pawno\include\eSelection.inc(202) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
pawno\include\eSelection.inc(203) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(224) : error 017: undefined symbol "PlayerTextDrawSetPreviewVehCol"
pawno\include\eSelection.inc(230) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(406) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
pawno\include\eSelection.inc(553) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
pawno\include\eSelection.inc(558) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(564) : error 017: undefined symbol "PlayerTextDrawSetPreviewRot"
pawno\include\eSelection.inc(568) : error 017: undefined symbol "PlayerTextDrawSetPreviewModel"
gamemodes\roleplay.pwn(2254) : error 017: undefined symbol "foreach"
gamemodes\roleplay.pwn(2254) : error 029: invalid expression, assumed zero
gamemodes\roleplay.pwn(2254) : error 017: undefined symbol "i"
gamemodes\roleplay.pwn(2254) : fatal error 107: too many error messages on one line
Looks like you're missing some includes. Make sure that you have all the includes that are listed at the top of the gamemode.

They look like this:
Code:
#include <filenamehere>
__________________
Developer @ Trucknation
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity"


IMPORTANT LINKS
An upcoming mix of trucking & light roleplay
Proxus is offline   Reply With Quote
Old 18/05/2020, 03:14 PM   #1010
Adib23704
Little Clucker
 
Adib23704's Avatar
 
Join Date: Mar 2019
Location: Dhaka, Bagladesh
Posts: 4
Reputation: 0
Default Re: South Central Roleplay [CURRENT - 0.21 BUILD]

Quote:
Originally Posted by Proxus View Post
Looks like you're missing some includes. Make sure that you have all the includes that are listed at the top of the gamemode.

They look like this:
Code:
#include <filenamehere>
Yes, I have all of the includes
Adib23704 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 02:43 AM.


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