PDA

View Full Version : Just changed it to ZCMD and go 4 errors in it


KamalBa
07/07/2015, 12:32 PM
CMD:back(playerid, params[]);

C:\Users\win7\Desktop\My Roleplay server\gamemodes\bb_freeroam.pwn(11485) : error 029: invalid expression, assumed zero
C:\Users\win7\Desktop\My Roleplay server\gamemodes\bb_freeroam.pwn(11485) : error 017: undefined symbol "cmd_back"
C:\Users\win7\Desktop\My Roleplay server\gamemodes\bb_freeroam.pwn(11485) : error 029: invalid expression, assumed zero
C:\Users\win7\Desktop\My Roleplay server\gamemodes\bb_freeroam.pwn(11485) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

SaintMikey
07/07/2015, 12:42 PM
Would be good if you send us the entire command instead of just the first line.


EDIT: Make it like this CMD:backup(playerid, params[])
Make sure you have the ; removed from the COMMANDLINE itself and it will work!

KamalBa
07/07/2015, 12:45 PM
CMD:back(playerid, params[]);
{
new name[MAX_PLAYER_NAME], stringz[128];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(stringz, sizeof(stringz), "%s Back", name);
SendClientMessageToAll(COLOR_YELLOW, stringz);
TogglePlayerControllable(playerid, 1);
return 1;
}

SaintMikey
07/07/2015, 12:46 PM
Would be good if you send us the entire command instead of just the first line.


EDIT: Make it like this CMD:backup(playerid, params[])
Make sure you have the ; removed from the COMMANDLINE itself and it will work!

Make sure to follow the steps I did :)

KamalBa
07/07/2015, 12:48 PM
Nothing changed

mamorunl
07/07/2015, 12:51 PM
CMD:back(playerid, params[])
{
new name[MAX_PLAYER_NAME], stringz[128];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(stringz, sizeof(stringz), "%s Back", name);
SendClientMessageToAll(COLOR_YELLOW, stringz);
TogglePlayerControllable(playerid, 1);
return 1;
}


This is what SaintMikey meant. Is this what you did?

KamalBa
07/07/2015, 12:53 PM
; removed but no thing changed

SecretBoss
07/07/2015, 02:17 PM
here you are

#include <a_samp>
#include <zcmd>

CMD:back(playerid, params[])
{
new string[128];
format(string, sizeof(string), "%s Back", pName(playerid));
SendClientMessageToAll(COLOR_YELLOW, string);
TogglePlayerControllable(playerid, 1);
return 1;
}

stock pName(playerid)
{
new GetName[24];
GetPlayerName(playerid, GetName, 24);
return GetName;
}

I got no errors when I compiled it, btw you can use pName its easier and you save time with using it I have already gave you the stock

KamalBa
07/07/2015, 05:52 PM
How to fix this

[20:52:32] *** Streamer Plugin: Include file version (0x27201) does not match plugin version (0x277001) (script might need to be recompiled with the latest include file)
[20:52:32] Error: Function not registered: 'SSCANF_Init'
[20:52:32] Error: Function not registered: 'SSCANF_Join'
[20:52:32] Error: Function not registered: 'SSCANF_Leave'
[20:52:32] SSCANF2 Loaded
[20:52:33] Filterscript 'oupdates.amx' loaded.

SpikeSpigel
07/07/2015, 07:00 PM
First. I see that you used SSCANF but u didn't included it . Just put #include <sscanf2> at the start and install SSCANF. So, I see that some1 helped you with the command. The error you are receving is cuz you have an old version of SSCANF/STREAMER . you can install nativechecker and put the server_log here.

KamalBa
07/07/2015, 07:20 PM
out Of memory

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

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[22:10:44]
[22:10:44] Server Plugins
[22:10:44] --------------
[22:10:44] Loading plugin: MerRandom
[22:10:44] Plugin MerRandom v2.1 - by Cyber_Punk got loaded.
[22:10:44] Loaded.
[22:10:44] Loading plugin: PointToPoint
[22:10:44] PointToPoint Plugin Loaded.
[22:10:44] Loaded.
[22:10:44] Loading plugin: streamer
[22:10:44]

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

[22:10:44] Loaded.
[22:10:44] Loading plugin: nativechecker
[22:10:44] Loaded.
[22:10:44] Loading plugin: sscanf
[22:10:44]

[22:10:44] ===============================

[22:10:44] sscanf plugin loaded.

[22:10:44] Version: 2.8.1

[22:10:44] (c) 2012 Alex "******" Cole

[22:10:44] ===============================

[22:10:44] Loaded.
[22:10:44] Loaded 5 plugins.

[22:10:44] I couldn't load any gamemode scripts. Please verify your server.cfg
[22:10:44] It needs a gamemode0 line at the very least.

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

SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[22:19:53]
[22:19:53] Server Plugins
[22:19:53] --------------
[22:19:53] Loading plugin: MerRandom
[22:19:53] Plugin MerRandom v2.1 - by Cyber_Punk got loaded.
[22:19:53] Loaded.
[22:19:53] Loading plugin: PointToPoint
[22:19:54] PointToPoint Plugin Loaded.
[22:19:54] Loaded.
[22:19:54] Loading plugin: streamer
[22:19:54]

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

[22:19:54] Loaded.
[22:19:54] Loading plugin: nativechecker
[22:19:54] Loaded.
[22:19:54] Loading plugin: sscanf
[22:19:54]

[22:19:54] ===============================

[22:19:54] sscanf plugin loaded.

[22:19:54] Version: 2.8.1

[22:19:54] (c) 2012 Alex "******" Cole

[22:19:54] ===============================

[22:19:54] Loaded.
[22:19:54] Loaded 5 plugins.

[22:19:54]
[22:19:54] Filterscripts
[22:19:54] ---------------
[22:19:54] Loading filterscript 'gl_actions.amx'...
[22:19:54] Loading filterscript 'gl_realtime.amx'...
[22:19:54] Loading filterscript 'gl_property.amx'...
[22:19:54]
-----------------------------------
[22:19:54] Grand Larceny Property Filterscript
[22:19:54] -----------------------------------

[22:19:54] Loading filterscript 'gl_mapicon.amx'...
[22:19:54] Loading filterscript 'ls_elevator.amx'...
[22:19:54] Loading filterscript 'attachments.amx'...
[22:19:54] Loading filterscript 'skinchanger.amx'...
[22:19:54]
--Admin Player Skin Changer Loaded

[22:19:54] Loading filterscript 'vspawner.amx'...
[22:19:54]
--Admin Vehicle Spawner Loaded

[22:19:54] Loading filterscript 'test_cmds.amx'...
[22:19:54] Loading filterscript 'ls_mall.amx'...
[22:19:54] Loading filterscript 'ls_beachside.amx'...
[22:19:54]

[22:19:54] |---------------------------------------------------
[22:19:54] |--- LS BeachSide Filterscript
[22:19:54] |-- Script v1.03
[22:19:54] |-- 19th April 2015
[22:19:54] |---------------------------------------------------
[22:19:54] |-- LS BeachSide Building Elevator created
[22:19:54] |---------------------------------------------------
[22:19:54] Loaded 11 filterscripts.

[22:19:54] Script[gamemodes/RP_Script.amx]: Run time error 16: "Out of memory"
[22:19:54] Failed to load 'gamemodes/RP_Script.amx' script.
[22:19:54] Number of vehicle models: 0

KamalBa
07/07/2015, 07:23 PM
echo Executing Server Config...
lanmode 0
rcon_password ---------
maxplayers 30
port 7777
hostname Repexlona Gaming [0.3.7]
gamemode0 RP_Script
plugins MerRandom PointToPoint streamer nativechecker sscanf
filterscripts gl_actions gl_realtime gl_property gl_mapicon ls_elevator attachments skinchanger vspawner test_cmds ls_mall ls_beachside
announce 0
query 1
chatlogging 0
weburl Coming Soon!
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language English
map San Andreas

KamalBa
07/07/2015, 07:47 PM
Answer how to fix this ?

SecretBoss
07/07/2015, 07:56 PM
what to fix I can't understand you?

Use the code I gave you, I hope its working