SA:MP Gamemode problems
#1

Hello everyone, I will describe my problems, I just boght a GodFather GM, but when I run the server, that give me some problems, but that's a thing... I've got some compile problems, Below i will put the error log and the line with problems:


P.s:First time :I am newbie in scripting, don't blame me, second time: I tried to solve this problems, i just solved that, but i got some bugs, so i decide to request help.
Thank you in advance!
Reply
#2

Try this:

Код:
	new String[128];
	String = strtok(params, idx);
	if (!strlen(String)) return SendClientMessage(playerid, COLOR_GRAD2, "[USAGE]: /gotopos x y z");
	new Float:X, Float:Y, Float:Z;
	X = floatstr(String);
	Y = floatstr(strtok(params,idx));
	Z = floatstr(strtok(params,idx));
        SetPlayerPos(playerid, x, y, z);
The second error is because the variable is not defined. Do it at the beginning of the script. It seems to be a boolean.
Reply
#3

I used: new Ach_TxtVisible[MAX_PLAYERS]; and that work;
Your code was usefull, after compile pawno give me an error and it say PosX,PosY,PosZ it's too short, and i increased the lenght of them, that works, now i have another problem with player Region, i search in The GM lines and i found some stocks:

If i use one of them my Pawno didn;t give another error, but i have still problems with server so: Can you or somebody define a stock for that neededs?:

That's the error, so GetplayerRegion stock missing, but i don't know how to define it to work:
Quote:

C:\Users\xKuramaX\Desktop\frkz\gamemodes\FkZ.pwn(5 0423) : error 017: undefined symbol "GetPlayerRegion"
C:\Users\xKuramaX\Desktop\frkz\gamemodes\FkZ.pwn(5 0423) : warning 202: number of arguments does not match definition
C:\Users\xKuramaX\Desktop\frkz\gamemodes\FkZ.pwn(5 0447) : error 017: undefined symbol "GetPlayerRegion"
C:\Users\xKuramaX\Desktop\frkz\gamemodes\FkZ.pwn(5 0447) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Reply
#4

I used GetPlayer2DZone and that compile, but when i open the server i've got another problems, FS unable to load, and a warning From YSI, but server have problem, after register, usualy, tutorial must start, that didn;t start and i can do nothing.....
Quote:

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

SA-MP Dedicated Server
----------------------
v0.3x, ©2005-2013 SA-MP Team

[29/04/2015 21:37:11]
[29/04/2015 21:37:11] Server Plugins
[29/04/2015 21:37:11] --------------
[29/04/2015 21:37:11] Loading plugin: sscanf
[29/04/2015 21:37:11]

[29/04/2015 21:37:11] ===============================

[29/04/2015 21:37:11] sscanf plugin loaded.

[29/04/2015 21:37:11] Version: 2.8.1

[29/04/2015 21:37:11] © 2012 Alex "******" Cole

[29/04/2015 21:37:11] ===============================

[29/04/2015 21:37:11] Loaded.
[29/04/2015 21:37:11] Loading plugin: streamer
[29/04/2015 21:37:11]

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

[29/04/2015 21:37:11] Loaded.
[29/04/2015 21:37:11] Loading plugin: Whirlpool
[29/04/2015 21:37:11]
[29/04/2015 21:37:11] ==================
[29/04/2015 21:37:11]
[29/04/2015 21:37:11] Whirlpool loaded
[29/04/2015 21:37:11]
[29/04/2015 21:37:11] ==================
[29/04/2015 21:37:11]
[29/04/2015 21:37:11] Loaded.
[29/04/2015 21:37:11] Loaded 3 plugins.

[29/04/2015 21:37:12]
[29/04/2015 21:37:12] Filterscripts
[29/04/2015 21:37:12] ---------------
[29/04/2015 21:37:12] Loading filterscript 'JunkBuster.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'JunkBuster.amx'.
[29/04/2015 21:37:12] Loading filterscript 'yRace.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'yRace.amx'.
[29/04/2015 21:37:12] Loading filterscript 'Cashbox.amx'...
[29/04/2015 21:37:12] Loading filterscript 'Casino.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'Casino.amx'.
[29/04/2015 21:37:12] Loading filterscript 'Pool.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'Pool.amx'.
[29/04/2015 21:37:12] Loading filterscript 'Basketball.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'Basketball.amx'.
[29/04/2015 21:37:12] Loading filterscript 'g_casinogames_utilities.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'g_casinogames_utilities.amx'.
[29/04/2015 21:37:12] Loading filterscript 'g_casinogames.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'g_casinogames.amx'.
[29/04/2015 21:37:12] Loading filterscript 'Autoaim.amx'...
[29/04/2015 21:37:12] Unable to load filterscript 'Autoaim.amx'.
[29/04/2015 21:37:12] Loaded 1 filterscripts.

[29/04/2015 21:37:12]
[29/04/2015 21:37:12] =======================================
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | YSI version 1.04.0000 |
[29/04/2015 21:37:12] | By Alex "******" Cole |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] =======================================
[29/04/2015 21:37:12]
[29/04/2015 21:37:12]
* iAchieve :: Advanced Achievement System by iPLEOMAX, 2011 *

[29/04/2015 21:37:12]

[29/04/2015 21:37:12] |----------------------------------|
[29/04/2015 21:37:12] | The Godfather: LS, SF & LV |
[29/04/2015 21:37:12] | Made by Fear & Edited by Striker |
[29/04/2015 21:37:12] |----------------------------------|
[29/04/2015 21:37:12]

[29/04/2015 21:37:12] Number of vehicle models: 0
[29/04/2015 21:37:12]
[29/04/2015 21:37:12] ==========================================
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | A new version (v3.09.0684) of YSI is |
[29/04/2015 21:37:12] | available from: |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | www.y-less.com/YSI/YSI_1.0.zip |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | Changelog: |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | 3.00.0000: |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | YSI 3.0 released! Now includes the |
[29/04/2015 21:37:12] | "y_text" library for better messages, |
[29/04/2015 21:37:12] | and a reworked "y_classes" library. |
[29/04/2015 21:37:12] | Largely documented here |
[29/04/2015 21:37:12] | "http://forum.sa-mp.com/showthread.php |
[29/04/2015 21:37:12] | ?t=321092". |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | 3.01.0002: |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | Small fixes to "y_text" and |
[29/04/2015 21:37:12] | "y_classes". |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | 3.09.0684: |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] | Reverted to old download location. |
[29/04/2015 21:37:12] | Improved (and fixed) version checks; |
[29/04/2015 21:37:12] | added y_bitmap, y_areas, y_races, |
[29/04/2015 21:37:12] | y_zonenames, better documentation; |
[29/04/2015 21:37:12] | MANY other bug fixes - see the github |
[29/04/2015 21:37:12] | repository for more details: |
[29/04/2015 21:37:12] | |
[29/04/2015 21:37:12] ==========================================
[29/04/2015 21:37:12]

Reply
#5

OK, i found in myself my part of logic and programming, i am a little C++ developer, and i put all toghether, and found the solution, thanks for help. You can lock this Thread! TY Sa-Mp Comunity!
Reply
#6

ERASED
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)