error 010: invalid function or declaration
new skyspickup1; skyspickup1 = CreatePickup(19130, 1, 17.8010, 1526.4569, 70.1786, 0); <- line 8129. public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == skyspickup1) { SetPlayerPos(playerid, 13.5926, 1524.2189, 75.7102); return 1; } return 0; }
skyspickup1 = CreatePickup(19130, 1, 17.8010, 1526.4569, 70.1786, 0); <- line 8129.
new skyspickup1; skyspickup1 = CreatePickup(19130, 1, 17.8010, 1526.4569, 70.1786); public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == skyspickup1) { SetPlayerPos(playerid, 13.5926, 1524.2189, 75.7102); return 1; } return 0; }
Tried out both of the possible fixes, the same error still appears in the same line though.
|
new skyspickup1; public OnGameModeInit() { skyspickup1 = CreatePickup(19130, 1, 17.8010, 1526.4569, 70.1786); >>>> place in onGameModeInit() return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == skyspickup1) { SetPlayerPos(playerid, 13.5926, 1524.2189, 75.7102); return 1; } return 0; }
Code:
new skyspickup1; public OnGameModeInit() { skyspickup1 = CreatePickup(19130, 1, 17.8010, 1526.4569, 70.1786); >>>> place in onGameModeInit() return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == skyspickup1) { SetPlayerPos(playerid, 13.5926, 1524.2189, 75.7102); return 1; } return 0; } |