11.08.2010, 23:50
Hi... Its me... once again... xD... im making a command for voting for maps, i have this
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......
Код:
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; }