What's wrong?
#1

CAn somebody please say what's wron with this code?
http://pastebin.com/d58f8bfdd
Reply
#2

What's above the brackets?
Reply
#3

public OnGameModeInit()
It gives me these errors:
C:\Users\BuLjonS\Desktop\samp03asvr_R4_win32\gamem odes\grandlarc.pwn(354) : error 017: undefined symbol "playerid"
C:\Users\BuLjonS\Desktop\samp03asvr_R4_win32\gamem odes\grandlarc.pwn(355) : error 017: undefined symbol "playerid"
Reply
#4

Quote:
Originally Posted by buljons
public OnGameModeInit()
It gives me these errors:
C:\Users\BuLjonS\Desktop\samp03asvr_R4_win32\gamem odes\grandlarc.pwn(354) : error 017: undefined symbol "playerid"
C:\Users\BuLjonS\Desktop\samp03asvr_R4_win32\gamem odes\grandlarc.pwn(355) : error 017: undefined symbol "playerid"
It doesn't work like that. There's no 'playerid' variable in OnGameModeInit. There is an OnPlayerPickUpPickup callback (which is triggered when a player picks up a pickup), however.

pawn Код:
public OnGameModeInit()
{
  pickup = CreatePickup(1318, 23, 2025.1743,1532.4404,10.8203, -1);
  return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == pickup)
  {
    GivePlayerWeapon(playerid,46, 1); // They picked up your pickup, now they can have the weapon!
  }
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)