Just changed it to ZCMD and go 4 errors in it
#1

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.
Reply
#2

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!
Reply
#3

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

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
Reply
#5

Nothing changed
Reply
#6

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

; removed but no thing changed
Reply
#8

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
Reply
#9

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.
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)