Compile Error
#1

When I compile my RP script it says:

Код:
C:\Users\Greattech.se\Desktop\SAS:RP\gamemodes\SAS:RP(44303) : error 025: function heading differs from prototype
Код:
stock ShowDialog(playerid, dialogid)
And This is the whole shit

Код:
stock ShowDialog(playerid, dialogid)
{
    new string[356], tstring[356], cstring[356], ip[16];
	switch(dialogid)
	{
	    case 0: // Tutorial Dialog
		{
			ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "{42C2F5}[San Andreas Street's RP: {FFFFFF}Register Finish{42C2F5}]","Would you like to see the tutorial?", "Yes", "No");
		}
		case 1: // Register
		{
			GetPlayerIp(playerid,ip,sizeof(ip));
		    format(tstring, sizeof(tstring), "{42C2F5}[San Andreas Street's RP: {FFFFFF}Register{42C2F5}]");
		    format(cstring, sizeof(cstring), "{FFFFFF}Hello, Welcome to San Andreas Street's RP We have found you are not registered.\n\n[Username]: {E3DD3B}%s{FFFFFF} - [IP]: {E3DD3B}%s{FFFFFF}\n\nIt seems you are not registered, enter a password below to do-so!", NORPN(playerid), ip);
		    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, tstring, cstring, "Register", "Quit");
		}
		case 2: // Login
		{
			GetPlayerIp(playerid,ip,sizeof(ip));
		    format(tstring, sizeof(tstring), "{42C2F5}[San Andreas Street's RP: {FFFFFF}Login{42C2F5}]", RPN(playerid));
			format(cstring, sizeof(cstring), "{FFFFFF}Hello, Welcome to San Andreas Street's RP We have found you are registered.\n\n[Username]: {E3DD3B}%s{FFFFFF} - [IP]: {E3DD3B}%s{FFFFFF}\n\nPlease enter your password below to login.", NORPN(playerid), ip);
		    ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, tstring, cstring, "Login", "Quit");
		}
		case 3: // Male/Female
		{
		    ShowPlayerDialog(playerid, 3, 2, "{42C2F5}Choose your character's gender", "Male\nFemale", "Choose", "Cancel");
		}
		case 4: // Age
		{
		    ShowPlayerDialog(playerid, 4, DIALOG_STYLE_INPUT, "{42C2F5}Character's age","Choose your character's age (18-80)", "Choose", "Cancel");
		}
		case 5: // SAPD Lockers
		{
		    ShowPlayerDialog(playerid, 5, 2, "{42C2F5}LSPD Lockers", "Duty\nArmory\nClothes(Textdraw)\nClothes(Dialog)", "Choose", "Cancel");
		}
		case 763: // SWAT Lockers
		{
		    ShowPlayerDialog(playerid, 763, 2, "{42C2F5}SWAT Lockers", "Duty\nArmory\nClothes(Textdraw)\nClothes(Dialog)", "Choose", "Cancel");
		}
		case 6: // SAPD Armory
		{
		    ShowPlayerDialog(playerid, 6, 2, "{42C2F5}LSPD Lockers", "Nightstick ($50)\nMace ($100)\nDesert Eagle ($200)\nShotgun ($100)\nMP5 ($600)\nM4 ($1000)\nCombat Shotgun ($1500)\nSniper Rifle ($2500)\nPainkiller ($100)\nVest ($200)\nFast Arm ($10000)", "Choose", "Cancel");
		}
		case 7: // Clothes Dialog
		{
		    ShowPlayerDialog(playerid, 7, DIALOG_STYLE_INPUT, "{42C2F5}Clothes","Choose your clothes (( Skin ID ))", "Choose", "Cancel");
		}
		case 8: // Smartphone Browse 1
		{
		    ShowPlayerDialog(playerid, 8, DIALOG_STYLE_MSGBOX, "{42C2F5}Smartphone Web Browser > www.emp3world.com","Downloading a song costs $50\n\n1) Champaigne Showers - LMFAO      2) Club can't Handle Me - David Guetta", "Next", "Close");
		}
		case 9: // Mechanic
		{
		    ShowPlayerDialog(playerid, 9, 2, "{42C2F5}Mechanic Tools", "Repair Vehicle\nAdd/Remove Nitros\nAdd/Remove Hydraulics", "Choose", "Cancel");
		}
		case 10: // Dealership Main
		{
		    ShowPlayerDialog(playerid, 10, 2, "{42C2F5}Choose a category", "Bikes\nNormal Vehicles\nLowriders\nOff-Road Vehicles\nSport Vehicles", "Choose", "Cancel");
		}
        case 11: // Bikes
		{
		    ShowPlayerDialog(playerid, 11, 2, "{42C2F5}Bikes", "BMX ($600)\nFaggio ($10,000)\nFreeway ($60,000)\nSanchez ($40,000)\nQuad ($15,000)\nPCJ-600 ($200,000)\nFCR-900 ($250,000)", "Choose", "Cancel");
		}
		case 12: // Normal Vehicles
		{
		    ShowPlayerDialog(playerid, 12, 2, "{42C2F5}Normal Vehicles", "Comet ($300,000)\nFeltzer ($160,000)\nStallion ($160,000)\nWindsor ($280,000)\nSentinel ($140,000)\nManana ($120,000)\nElegy ($130,000)", "Choose", "Cancel");
 		}
		case 13: // Off-Road Vehicles
		{
		    ShowPlayerDialog(playerid, 13, 2, "{42C2F5}Off-Road Vehicles", "Huntley ($220,000)\nLandstalker ($200,000)\nSandking ($700,000)\nCaddy ($50,000)", "Choose", "Cancel");
		}
		case 14: // Sport Vehicles
		{
		    ShowPlayerDialog(playerid, 14, 2, "{42C2F5}Sport Vehicles", "Sultan ($225,000)\nBanshee ($260,000)\nBuffalo ($200,000)\nBullet ($190,000)\nCheetah ($280,000)\nJester ($170,000)\nTurismo ($300,000)\nSabre ($500,000)\nInfernus ($700,000)", "Choose", "Cancel");
		}
		case 15: // Smartphone advertise
		{
		    ShowPlayerDialog(playerid, 15, DIALOG_STYLE_INPUT, "{42C2F5}Smartphone","Type in the advertisement you wish to create", "Choose", "Cancel");
		}
		case 16: // VIP Dialog
		{
		    ShowPlayerDialog(playerid, 16, 2, "{42C2F5}Choose a vehicle type", "VIP Color (Bronze VIP)\nVIP Tag Above Head (Silver VIP)\nTune Vehicle (Silver VIP)\nCreate Advertisement (Silver VIP)\nChange Skin (Gold VIP)\nChange Age (Gold VIP)\nChange Gender (Gold VIP)\nChange Name (Platinum VIP)", "Choose", "Cancel");
		}
		case 17: // Changing Skin
		{
		    ShowPlayerDialog(playerid, 17, DIALOG_STYLE_INPUT, "{42C2F5}VIP Skin Change","Choose a skin between 0 and 299", "Choose", "Cancel");
		}
		case 18: // Change name
		{
		    ShowPlayerDialog(playerid, 18, DIALOG_STYLE_INPUT, "{42C2F5}VIP Name Change","Type in your new name (Admins will approve/disapprove ASAP)", "Submit", "Cancel");
		}
		case 19: // Weapons Shop
		{
			ShowPlayerDialog(playerid, 19, 2, "{42C2F5}VIP Weapons Shop", "Knife ($1000000)\n5 Grenades ($1000000)\n5 Molotov Cocktails ($1000000)", "Choose", "Cancel");
		}
		case 20: // VIP advertise
		{
		    ShowPlayerDialog(playerid, 20, DIALOG_STYLE_INPUT, "{42C2F5}VIP Advertisement","Type in the advertisement you wish to create", "Choose", "Cancel");
		}
		case 21: // Lowriders
		{
		    ShowPlayerDialog(playerid, 21, 2, "{42C2F5}Lowriders", "Blade($25,000)\nBroadway ($35,000)\nRemington ($30,000)\nSavanna ($25,000)\nSlamvan ($27,000)\nTornado ($24,000)\nVoodo ($30,000)", "Choose", "Cancel");
		}
		case 22: // Fighting Styles
		{
		    ShowPlayerDialog(playerid, 22, 2, "{42C2F5}Choose a style", "Normal ($3,000)\nBoxing ($3,000)\nKung-Fu ($3,000)\nKnee-Head ($3,000)\nGrab-Kick ($3,000)\nElbow ($3,000)", "Choose", "Cancel");
		}
		case 23: // Toys
		{
			// 1 Glasses, 2 watches, 3 bandana, 4 hats

		    format(string, sizeof(string), "Slot 0 (%s)\nSlot 1 (%s)\nSlot 2 (%s)\nSlot 3 (%s)\nSlot 4 (%s)\nSlot 5 (%s)\nSlot 6 (%s)\nSlot 7 (%s)\nSlot 8 (%s)\nSlot 9 (%s)", RPTN(playerid, 0), RPTN(playerid, 1), RPTN(playerid, 2), RPTN(playerid, 3), RPTN(playerid, 4), RPTN(playerid, 5), RPTN(playerid, 6), RPTN(playerid, 7), RPTN(playerid, 8), RPTN(playerid, 9));
			ShowPlayerDialog(playerid, 23, 2, "Your toys", string, "Choose", "Cancel");
		}
		case 24: // Toy Add/Remove/Edit
		{
		    new info[16], type[16];
		    if(!IsPlayerAttachedObjectSlotUsed(playerid, toyslot[playerid])) format(info, sizeof(info), "Show Toy");
		    else format(info, sizeof(info), "Hide Toy");
		    format(string, sizeof(string), "%s\nEdit Toy", info);
		    format(type, sizeof(type), "Toy Slot %d", toyslot[playerid]);
		    ShowPlayerDialog(playerid, 24, 2, type, string, "Choose", "Back");
		}
		case 25: // Toy adding bones
		{
	    	 /*
             1) Spine | 2) Head | 3) Left upper arm | 4) Right upper arm | 5) Left hand | 6) Right hand | 7) Left thigh
			 8) Right thigh | 9) Left foot | 10) Right foot | 11) Right calf | 12) Left calf | 13) Left forearm
			 14) Right forearm | 15) Left clavicle | 16) Right clavicle | 17) Neck | 18) Jaw
			*/
		    ShowPlayerDialog(playerid, 25, 2, "Choose a bone", "Spine\nHead\nLeft upper arm\nRight upper arm\nLeft hand\nRight hand\nLeft thigh\nRight thigh\nLeft foot\nRight foot\nRight calf\nLeft calf\nLeft forearmRight forearm\nLeft clavicle\nRight clavicle\nNeck\nJaw", "Choose", "Back");
		}
		case 26: // Loyal Points
		{
		    format(string, sizeof(string), "You have %d loyalty points.", PlayerInfo[playerid][pLPoints]);
		    ShowPlayerDialog(playerid, 26, 2, string, "Refill Everybody's Health (2 Points)\nRepair All Vehicles (4 Points)\nRefill All Vehicles (6 Points)", "Confirm", "Cancel");
		}
		case 27: // NA Lockers
		{
		    ShowPlayerDialog(playerid, 27, 2, "{B30000}NA Lockers", "Camera\nClothes", "Choose", "Cancel");
		}
		case 89: // FBI Lockers
		{
		    ShowPlayerDialog(playerid, 89, 2, "{B30000}FBI Lockers", "Duty\nArmory\nClothes", "Choose", "Cancel");
		}
		case 90: // FBI Armory
		{
		    ShowPlayerDialog(playerid, 90, 2, "{B30000}FBI Lockers", "Nightstick ($50)\nMace ($100)\nDesert Eagle ($200)\nShotgun ($100)\nMP5 ($600)\nM4 ($1000)\nCombat Shotgun ($1500)\nSniper Rifle ($2500)\nPainkiller ($100)\nVest ($200)\nFast Arm ($10000)", "Choose", "Cancel");
		}
		case 91: // Clothes Dialog
		{
		    ShowPlayerDialog(playerid, 91, DIALOG_STYLE_INPUT, "{B30000}Clothes","Choose your clothes (( Skin ID ))", "Choose", "Cancel");
		}
		case 300: // HSF Lockers
		{
		    ShowPlayerDialog(playerid, 300, 2, "{B30000}HSF Lockers", "Duty\nArmory\nClothes(Textdraw)\nClothes(Dialog)", "Choose", "Cancel");
		}
		case 301: // HSF Armory
		{
		    ShowPlayerDialog(playerid, 301, 2, "{B30000}HSF Lockers", "Nightstick ($50)\nMace ($100)\nDesert Eagle ($200)\nMP5 ($600)\nShotgun ($1500)\nSniper Rifle ($2500)\nPainkiller ($100)\nVest ($200)", "Choose", "Cancel");
		}
		case 302: // Clothes Dialog
		{
		    ShowPlayerDialog(playerid, 302, DIALOG_STYLE_INPUT, "{B30000}Clothes","Choose your clothes (( Skin ID ))", "Choose", "Cancel");
		}
		case 303: // Toy Slot Dialog
		{
		    ShowPlayerDialog(playerid, 303, DIALOG_STYLE_INPUT, "{B30000}Toy Slot","Choose your toy slot (( 0 - 9 ))", "Choose", "Cancel");
		}
		case 350: // Corleone/Leone/ESF Lockers
		{
		    ShowPlayerDialog(playerid, 350, 2, "{B30000}Criminal Lockers", "Duty\nArmory\nClothes", "Choose", "Cancel");
		}
		case 351: // Corleone/Leone/ESF Armory
		{
		    ShowPlayerDialog(playerid, 351, 2, "{B30000}Criminal Lockers", "Mace ($100)\nDesert Eagle ($200)\nMP5 ($600)\nShotgun ($1500)\nSniper Rifle ($2500)\nAK-47 ($5500)\nPainkiller ($100)\nVest ($200)", "Choose", "Cancel");
		}
		case 352: // Clothes Dialog
		{
		    ShowPlayerDialog(playerid, 352, DIALOG_STYLE_INPUT, "{B30000}Clothes","Choose your clothes (( Skin ID ))", "Choose", "Cancel");
		}
		case 388: // Reporttips Dialog
		{
		    ShowPlayerDialog(playerid, 388, DIALOG_STYLE_MSGBOX, "{B30000}Report tips","Tips when reporting:\n- Report what you need, not who you need.\n- Be specific, report exactly what you need.\n- Do not make false reports.\n- Do not flame admins.\n- Report only for in-game items.\nDont Report For Hitman\nDont Report For ADMIN/HELPER","Close", "");
		}
		case 550: // Car Plate System Choose
		{
			if(PlayerInfo[playerid][pVeh])
			{
				ShowPlayerDialog(playerid, 550, 2, "{B30000}Vehicle Plate","Vehicle Slot 1","Close", "");
			}
			else if(PlayerInfo[playerid][pVVeh])
			{
				ShowPlayerDialog(playerid, 550, 2, "{B30000}Vehicle Plate","Vehicle Slot 1\nVehicle Slot 2","Close", "");
			}
			else if(PlayerInfo[playerid][pBVeh])
			{
				ShowPlayerDialog(playerid, 550, 2, "{B30000}Vehicle Plate","Vehicle Slot 1\nVehicle Slot 2\nVehicle Slot 3","Close", "");
			}
			else
			{
				SendClientMessage(playerid, COLOR_RED, "You do not own any vehicle slot.");
			}
		}	
		case 551: // Car Plate System Input
		{
		    ShowPlayerDialog(playerid, 388, DIALOG_STYLE_INPUT, "{B30000}Vehicle Plate","Typ something that you want as your vehicle plate.","Ok", "Cancel");
		}	
		case 552: // Car Plate System Input
		{
		    ShowPlayerDialog(playerid, 388, DIALOG_STYLE_INPUT, "{B30000}Vehicle Plate","Typ something that you want as your vehicle plate.","Ok", "Cancel");
		}	
		case 553: // Car Plate System Input
		{
		    ShowPlayerDialog(playerid, 388, DIALOG_STYLE_INPUT, "{B30000}Vehicle Plate","Typ something that you want as your vehicle plate.","Ok", "Cancel");
		}
		case 850: // SWAT Lockers
		{
		    ShowPlayerDialog(playerid, 850, 2, "{B30000}SWAT Lockers", "Duty\nArmory\nClothes(Textdraw)\nClothes(Dialog)", "Choose", "Cancel");
		}
	}
	return 1;
}
Reply
#2

give us the line 44303
Reply
#3

Quote:

give us the line 44303

That Code is 44303. But Here it is: stock ShowDialog(playerid, dialogid)
Reply
#4

For me there is no error in this stock.
Where have u used it? Give me the line
Reply
#5

Quote:

For me there is no error in this stock.
Where have u used it? Give me the line

What do you mean with Give me The Line??
Reply
#6

Go to pawno.exe, search for line 44303, you can see the line queries on left scroll.
Reply
#7

I found the problem but now it says:

fatal error 100: cannot read from file: "OPSP"

But I have OPSP
Reply
#8

Open pawno.exe that is in the same server files with OPSP include.

then open the script from the pawno.exe, you'll see everything once you entered the pawno.exe.

then re-compile.
Reply
#9

Quote:
Originally Posted by mixmadamich
Посмотреть сообщение
I found the problem but now it says:

fatal error 100: cannot read from file: "OPSP"

But I have OPSP
Go and install OPSP include once you installed it paste it into your include then re-compile
Reply
#10

Tony, you're not helping him out.

He has gotten the include.

All he need to do is, go to pawno.exe in the incldue folder where you also put the OPSP include.

then re-compile.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)