error help
#1

im getiing "C:\Users\tristan\Documents\My Received Files\test.pwn(215) : error 010: invalid function or declaration"

on this
Код:
public OnPlayerPickUpPickup(playerid, pickupid)

	 if (pickupid == foodshop1)
   {
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
		ShowMenuForPlayer(foodshops, playerid);
		TogglePlayerControllable(playerid, 0);
   }
(line 215)   if (pickupid == foodshop2)
   {
		PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
		ShowMenuForPlayer(foodshops, playerid);
		TogglePlayerControllable(playerid, 0);
   }
 //return 0;
//}
even tho ive used the same code before.
Reply
#2

You forgot a bracket after public OnPlayerPickUpPickup(playerid, pickupid)
Reply
#3

oh lol . my bad eye sight ..... :S , nope still get the same
Reply
#4

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
   if (pickupid == foodshop1)
   {
        PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
        ShowMenuForPlayer(foodshops, playerid);
        TogglePlayerControllable(playerid, 0);
   }
  else if (pickupid == foodshop2)
   {
        PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);
        ShowMenuForPlayer(foodshops, playerid);
        TogglePlayerControllable(playerid, 0);
   }
 return 0;
}
Reply
#5

ok i got all that working then i started another menu
Код:
if(CurrentMenu == sexshops)
	{
  	switch(row)
  	{
      case 0: 
      {
	      GivePlayerMoney(playerid, -500);
	      GivePlayerWeapon(playerid,10,1);
      }
but since i put that in my server just crashes , is it to do with the GivePlayerWeapon?

other bits put inn at the same time
Код:
new sexshop1;
sexshop1 = CreatePickup(1318, 2, -105.0409,-11.2407,1000.7188);
new Menu: sexshops;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)