SA-MP Forums Archive
Server comands dont work - 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: Server comands dont work (/showthread.php?tid=605657)



Server comands dont work - retejas - 22.04.2016

Hey all any of my server commands works all others stuff is perfect chars loading and so on. One of commands :
Код:
		if(!strcmp(cmdtext, "/paslaugos", true)) {
			SendClientMessage(playerid, COLOR_GREEN, "Norit pirkti paslaugas - susisiekit skype: arnas_drift") ;
			print("/paslaugos");
			//InfoBox(playerid,"Paslaugos","Visos paslaugos - /kreditai\nKreditų pirkimas - /pirktikrd ir www.TKG.lt/paslaugos");
			return 1;
		}
and as i realized all my commans goes to this publick
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
Код:
ublic OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(!success) SendClientMessage(playerid, RED,"• • • Tokios komandos nėra, komandas rasite /komandos, /pagalba • • •");
	print("Kazkoks komandu performed");
	return 1;
}
Anybody knows where can be a problem?


Re: Server comands dont work - Sew_Sumi - 22.04.2016

Because you can't mix Fast Commands, and Normal strcmp commands... Either use one method or the other, or this will happen.


Re: Server comands dont work - retejas - 23.04.2016

What is Fast commands i dont get it :/


Re: Server comands dont work - Saliim - 23.04.2016

hi bro, use that
Код:
#include <izcmd>
Код:
CMD:paslaugos(playerid)
{
     SendClientMessage(playerid, COLOR_GREEN, "Norit pirkti paslaugas - susisiekit skype: arnas_drift") ;
     print("/paslaugos");
     //InfoBox(playerid,"Paslaugos","Visos paslaugos - /kreditai\nKreditų pirkimas - /pirktikrd irwww.TKG.lt/paslaugos");
     if(!success) SendClientMessage(playerid, RED,"• • • Tokios komandos nėra, komandas rasite /komandos, /pagalba • • •");
     print("Kazkoks komandu performed");

     return 1;
}



Re: Server comands dont work - retejas - 23.04.2016

TBH not really working :/

Код:
C:\Users\Egidą\Desktop\servas\gamemodes\CL.pwn(13342) : error 029: invalid expression, assumed zero
C:\Users\Egidą\Desktop\servas\gamemodes\CL.pwn(13342) : error 017: undefined symbol "cmd_paslaugos"
C:\Users\Egidą\Desktop\servas\gamemodes\CL.pwn(13342) : error 029: invalid expression, assumed zero
C:\Users\Egidą\Desktop\servas\gamemodes\CL.pwn(13342) : 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: Server comands dont work - Saliim - 23.04.2016

what you have in line 13342


Re: Server comands dont work - retejas - 23.04.2016

Код:
CMD:paslaugos(playerid)



Re: Server comands dont work - Saliim - 23.04.2016

CTRL+F search that: cmd_paslaugos
written here that it follows


Re: Server comands dont work - retejas - 23.04.2016

it goes nowhere


Re: Server comands dont work - Sew_Sumi - 23.04.2016

You can't mix ZCMD, with strcmp OnPlayerCommandText commands. They conflict and cause this.

https://sampwiki.blast.hk/wiki/Fast_Commands