SA-MP Forums Archive
error 010: invalid function or declaration - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 010: invalid function or declaration (/showthread.php?tid=628054)



error 010: invalid function or declaration - Pokemon64 - 05.02.2017

Код:
	case DIALOG_CLASS_2:
	{
    if(team[playerid] == TEAM_HUMAN)
    {
    if(response)
    {
    if(times >= 210)
    {
    switch(listitem)
    {
	case 0: if(pInfo[playerid][pXP] >= 0) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = CIVILIAN,setClass(playerid); else { SendXPError(playerid,0); }
	case 1: if(pInfo[playerid][pXP] >= 500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = POLICEMAN,setClass(playerid); else { SendXPError(playerid,500); }
	case 2: if(pInfo[playerid][pXP] >= 1500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = MEDIC,setClass(playerid); else { SendXPError(playerid,1500); }
	case 3: if(pInfo[playerid][pXP] >= 1500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = SCOUT,setClass(playerid); else { SendXPError(playerid,1500); }
	case 4: if(pInfo[playerid][pXP] >= 3000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = HEAVYMEDIC,setClass(playerid); else { SendXPError(playerid,3000); }
	case 5: if(pInfo[playerid][pXP] >= 2000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = HEAVY,setClass(playerid); else { SendXPError(playerid,2000); }
	case 6: if(pInfo[playerid][pXP] >= 10000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = SWAT,setClass(playerid); else { SendXPError(playerid,10000); }
	case 7: if(pInfo[playerid][pXP] >= 15000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = Mi7,setClass(playerid); else { SendXPError(playerid,15000); }
	case 8: if(pInfo[playerid][pXP] >= 15000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = Firemaniac,setClass(playerid); else { SendXPError(playerid,15000); }
	case 9: if(pInfo[playerid][pXP] >= 7500) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = ENGINEER,setClass(playerid); else { SendXPError(playerid,7500); }
	case 10: if(pInfo[playerid][pXP] >= 30000) pInfo[playerid][pHumanClass] = 0,pInfo[playerid][pHumanClass] = ADVANCEDENGINEER,setClass(playerid); else { SendXPError(playerid,30000); }
	}
	}
	}
	}
	}
Any help?


Re: error 010: invalid function or declaration - Pokemon64 - 05.02.2017

Fixed lol me mistake.