same bugs
#1

Код:
C:\Users\Karolis\Desktop\New gamemode\gamemodes\mysqlGM.pwn(1524) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Karolis\Desktop\New gamemode\gamemodes\mysqlGM.pwn(1524) : warning 215: expression has no effect
C:\Users\Karolis\Desktop\New gamemode\gamemodes\mysqlGM.pwn(1529) : warning 209: function "OnPlayerClickTextDraw" should return a value
C:\Users\Karolis\Desktop\New gamemode\gamemodes\mysqlGM.pwn(1530) : error 054: unmatched closing brace ("}")
C:\Users\Karolis\Desktop\New gamemode\gamemodes\mysqlGM.pwn(1531) : error 010: invalid function or declaration


	if(_:clickedid != INVALID_TEXT_DRAW) // If the player clicked a valid textdraw, continue with the coding. (_:var removes the Text: tag, to avoid tag mismatch)
	{
		if(clickedid == Darbo_TD[playerid][6])
		{
			switch(IKokiDarbaNoriuIsidarbinti[playerid])
		 	{
		 		case PolicijosIsidarbimoPasirinkimas:
				{
		  			CancelSelectTextDraw(playerid);
			        SendClientMessage(playerid, -1, "Press button");
			        for(new s = 0; s < 15; s++) { TextDrawHideForPlayer(playerid, Darbo_TD[playerid][s]); }
			        SendClientMessage(playerid, -1, "Įsidarbinote Policijoje");
				}
				case MedikuIsidarbinimoPasirinkimas:
				{
					CancelSelectTextDraw(playerid);
			        SendClientMessage(playerid, -1, "Press button");
			        for(new s = 0; s < 15; s++) { TextDrawHideForPlayer(playerid, Darbo_TD[playerid][s]); }
			        SendClientMessage(playerid, -1, "Įsidarbinote Mediku");
				}
			    SendClientMessage(playerid, -1, "Press Esc");
			    for(new s = 0; s < 15; s++) { TextDrawHideForPlayer(playerid, Darbo_TD[playerid][s]); }
   			    return 1;
    			}
 			}
  		}
	}
    return 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)