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)
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); } |
How about go on balkan samp forums and post it there? cuz i am from balkan and i understand that but some people are not and they might not understand..
|
IC_war.pwn(1949) : error 002: only a single statement (or expression) can follow each "case" IC_war.pwn(1949 -- 1950) : error 028: invalid subscript (not an array or too many subscripts): "dialogid" IC_war.pwn(1949 -- 1951) : error 001: expected token: "}", but found "case" IC_war.pwn(1949 -- 1951) : fatal error 107: too many error messages on one line |
switch(dialogid) { case DIALOG_REGISTER: { if(response) { new string[179],pFile[35]; format(pFile, 35, Player_File, GetName(playerid)); new INI:UserFile = INI_Open(pFile); INI_WriteInt(UserFile, "Password", udb_hash(inputtext)); INI_WriteInt(UserFile, "Admin", 0); INI_WriteInt(UserFile, "Money", START_MONEY); INI_WriteInt(UserFile, "Score", 0); INI_WriteInt(UserFile, "Skin", SKIN_ID); INI_WriteInt(UserFile, "Warn", 0); INI_WriteInt(UserFile, "VIP", 0); INI_WriteInt(UserFile, "Org", 0); INI_WriteInt(UserFile, "Lider", 0); INI_Close(UserFile); SetPVarInt(playerid, "Registered", 1); SetPVarInt(playerid, "Logged", 1); SpawnPlayer(playerid); format(string, 125, ""COL_YELLOW"Ime: %s | Password: %s uspješno registrovano", GetName(playerid), inputtext); SCM(playerid, 0x46BA29FF, string); SpawnPlayer(playerid); } else Kick(playerid); } |
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); } |