26.12.2009, 11:16
I'm trying to make some teleports.
4 hours searching and reading tutorials and I could not resolve alone, so I have to ask for help from you.
I'm using Double-O-Stream.
And got this error:
Sorry if a silly mistake, but I'm starting scripting now.
Thanks for the attention.
4 hours searching and reading tutorials and I could not resolve alone, so I have to ask for help from you.
I'm using Double-O-Stream.
Quote:
new hospitalenter; new hospitalexit; new barenter; new barexit; |
Quote:
hospitalenter = CreatePickup(1318, 23, -1218.987100, 2397.302700, 134.264100); hospitalexit = CreatePickup(1318, 23, -1310.2120361328, 6762.9248046875, 41.715350341797); barenter = CreatePickup(1318, 23, -780.858200, 2404.935300, 157.063600); barexit = CreatePickup(1318, 23, -2015.3364257813, 6646.5830078125, 72.319000); |
Quote:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == hospitalenter) { SetPlayerPos(playerid, -1310.2120361328, 6762.9248046875, 41.715350341797); //Enter hospital SendClientMessage(playerid, 0xFFFFFFFF, "Entrou no Hospital Militar."); return 1; } else if(pickupid == hospitalexit) { SetPlayerPos(playerid, -1218.9871, 2397.3027, 134.2641); //Exit hospital SendClientMessage(playerid, 0xFFFFFFFF, "Saiu do Hospital Militar."); return 1; } else if(pickupid == barenter) { SetPlayerPos(playerid, -2015.3364257813, 6646.5830078125, 72.319); //Enter bar SendClientMessage(playerid, 0xFFFFFFFF, "Entrou no Bar Militar."); return 1; } else if(pickupid == barexit) { SetPlayerPos(playerid, -780.8582, 2404.9353, 157.0636); //Exit bar SendClientMessage(playerid, 0xFFFFFFFF, "Saiu do Bar Militar."); return 1; } return 0; } |
Quote:
...\filterscripts\teste.pwn(404) : error 021: symbol already defined: "OnPlayerPickUpPickup" |
Thanks for the attention.