SA-MP Forums Archive
Just changed it to ZCMD and go 4 errors in it - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Just changed it to ZCMD and go 4 errors in it (/showthread.php?tid=580684)



Just changed it to ZCMD and go 4 errors in it - KamalBa - 07.07.2015

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 © 1997-2006, ITB CompuPhase


4 Errors.



Re: Just changed it to ZCMD and go 4 errors in it - SaintMikey - 07.07.2015

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!


Re: Just changed it to ZCMD and go 4 errors in it - KamalBa - 07.07.2015

Код:
    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; 
}



Re: Just changed it to ZCMD and go 4 errors in it - SaintMikey - 07.07.2015

Quote:
Originally Posted by SaintMikey
Посмотреть сообщение
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


Re: Just changed it to ZCMD and go 4 errors in it - KamalBa - 07.07.2015

Nothing changed


Re: Just changed it to ZCMD and go 4 errors in it - mamorunl - 07.07.2015

Код:
    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?


Re: Just changed it to ZCMD and go 4 errors in it - KamalBa - 07.07.2015

; removed but no thing changed


Re: Just changed it to ZCMD and go 4 errors in it - SecretBoss - 07.07.2015

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


Re: Just changed it to ZCMD and go 4 errors in it - KamalBa - 07.07.2015

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.



Re: Just changed it to ZCMD and go 4 errors in it - SpikeSpigel - 07.07.2015

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.