05.08.2012, 14:37
I adding a new command (/oprema) and I get errors ![Confused](images/smilies/confused.png)
Lines(they are bolded):
![Confused](images/smilies/confused.png)
Код:
IC_war.pwn(2049) : error 035: argument type mismatch (argument 2) IC_war.pwn(2054) : error 035: argument type mismatch (argument 2) IC_war.pwn(2059) : error 035: argument type mismatch (argument 2) IC_war.pwn(2064) : error 035: argument type mismatch (argument 2) IC_war.pwn(2069) : error 035: argument type mismatch (argument 2) IC_war.pwn(2074) : error 035: argument type mismatch (argument 2) IC_war.pwn(2115) : error 040: duplicate "case" label (value 7)
Quote:
SetPVarInt(playerid,"pplayerid",999); } * case OPREMA_MENU: { if(response) { * if(listitem == 0) { * * * * * * * * * *GivePlayerWeapon(playerid,24,0); * *SendClientMessage(playerid, COL_WHITE, "Uzeo si Desert Deagle (50 metaka)."); * *} * *if(listitem == 1) { * * * * * * * * * *GivePlayerWeapon(playerid,31,150); * *SendClientMessage(playerid, COL_WHITE, "Uzeo si M4 (150 metaka)."); * *} * *if(listitem == 2) { * * * * * * * * * *GivePlayerWeapon(playerid,26,20); * *SendClientMessage(playerid, COL_WHITE, "Uzeo si sačmaricu (20 metaka)."); * *} * *if(listitem == 3) { * * * * * * * * * *GivePlayerWeapon(playerid,29,150); * *SendClientMessage(playerid, COL_WHITE, "Uzeo si MP5 (150 metaka)."); * *} * *if(listitem == 4) { * * * * * * * * * *GivePlayerWeapon(playerid,30,150); * *SendClientMessage(playerid, COL_WHITE, "Uzeo si AK47 (150 metaka)."); * *} if(listitem == 5) { * * * * * * * * * *GivePlayerWeapon(playerid,16,5); * *SendClientMessage(playerid, COL_WHITE, "Uzeo si bombu (5 bombi)."); * * * } } } * case RCON_DIALOG: * * * * { * * * * * *if(!response) return SCM(playerid,-1,"Dialog je zatvoren"); new string[128]; switch(listitem) { case 0: {//Server name * * * * * * * *ShowPlayerDialog(playerid,RCON_DIALOG+1,DIALOG_ST YLE_INPUT,"Server ime","Upiљite novo ime servera","Gotovo","Izađi"); } case 1: {//Map name * * * * * * * *ShowPlayerDialog(playerid,RCON_DIALOG+2,DIALOG_ST YLE_INPUT,"Map ime","Upiљite novu mapu servera","Gotovo","Izađi"); } case 2: {//Web adress * * * * * * * *ShowPlayerDialog(playerid,RCON_DIALOG+3,DIALOG_ST YLE_INPUT,"Forum servera","Upiљite novi forum servera","Gotovo","Izađi"); } case 3: {//Unlock SendRconCommand("password 0"); } case 4: {//lock ShowPlayerDialog(playerid,RCON_DIALOG+4,DIALOG_STY LE_INPUT,"Zaključaj server","Upiљite password za server","Gotovo","Izađi"); } case 5: {//GMX format(string,sizeof(string),"RESTART | Admin %s je restartovao server",GetName(playerid)); SCMToAll(-1,string); SendRconCommand("gmx"); } case 6: {//Password ShowPlayerDialog(playerid,RCON_DIALOG+5,DIALOG_STY LE_INPUT,"RCON password","Upiљite novi RCON password","Gotovo","Izađi"); } case 7: {//Turn Off format(string,sizeof(string),"Admin %s je ugasio server.",GetName(playerid)); SCMToAll(-1,string); SendRconCommand("exit"); } } } case RCON_DIALOG+1: { new string[32]; format(string, 16, "hostname %s",inputtext); SendRconCommand(string); } |