Server comands dont work
#1

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

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

What is Fast commands i dont get it :/
Reply
#4

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

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

what you have in line 13342
Reply
#7

Код:
CMD:paslaugos(playerid)
Reply
#8

CTRL+F search that: cmd_paslaugos
written here that it follows
Reply
#9

it goes nowhere
Reply
#10

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)