Command doest work...
#1

Hi... Its me... once again... xD... im making a command for voting for maps, i have this

Код:
dcmd_mapvote(playerid,params[])
{
	if(!strlen(params)) return SendClientMessage(playerid,COLOR_SERVER_WARNING,"USAGE: '/MAPVOTE [MAP NUMER]', use '/MAPS' for a list of maps!");
	if(Voting != 1) return SendClientMessage(playerid,COLOR_SERVER_WARNING,"There is a voting procces right now, please wait for the next one!");
	if(Voted[playerid] == 1) return SendClientMessage(playerid,COLOR_SERVER_WARNING,"You have voted already!");
	if(params[0] == strlen("MYMAP)) ******************************************
	{
	    MH += 1;
		Voted[playerid] = 1;
		SendClientMessage(playerid,COLOR_SERVER,"Thanks for your vote, please wait for the voting process to be over");
	}
	else return SendClientMessage(playerid,COLOR_SERVER_WARNING,"That option doesnt exist, use '/MAPS' to see available options!");
	return 1;
}
problem is it wont enter to the if place... no matter what, i ave also tried strval("MYMAP")) and with numbers but it wont do... I dont know what else to do......
Reply
#2

I think seeing more of your code might help. unless i'm just a idiot. =D
Reply
#3

Thats the whole code for the command... i dont have nothing else... Should i try sscanf?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)