Help needed with repair pickups -
thimo - 06.04.2011
Hey today i was trying to create things like repair pickups But i wanna add a command on it
if im near the command should only work but i dont know how to :S
pawn Код:
AddRepairPickup(Float:x, Float:y, Float:z)
{
CreatePickup(3096, 1, x, y, z + 0.2, 0); // Type 1, cannot be pickup up, exists all the time
// Add a 3DText message above the refuel-pickup
Create3DTextLabel("Drive into here", 0x008080FF, x, y, z + 0.8, 30.0, 0);
}
Thats the repair pickup thing and i wanna add this CMD to it
pawn Код:
CMD:repair(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x,y,z))
{
SendClientMessage(playerid, 0xFFFFFFFF, "Cock");
}
}
But this doesnt work because it cant find the X,Y,Z of the AddRepairPickup how to fix this if you can help me i will thank you!
Thanks!
Re: Help needed with repair pickups -
[DJ]Boki - 06.04.2011
Download "VAE" script,to set object positions,search it on ****** "vae"
Re: Help needed with repair pickups -
[BKR]LUCAGRABACR - 06.04.2011
Use GetPVarFloat and SetPVarFloat.
Re: Help needed with repair pickups -
thimo - 06.04.2011
wtf? Please can you make a example O_O
Re: Help needed with repair pickups -
thimo - 07.04.2011
BUMP Give proper answers -.-
Re: Help needed with repair pickups -
THE_KNOWN - 07.04.2011
replace those x y z in the cmd with the x y z of the pickup.
Re: Help needed with repair pickups -
thimo - 07.04.2011
Well i got this:
pawn Код:
AddRepairPickup(Float:x, Float:y, Float:z, playerid)
{
// Store the pickup-id in this empty slot
CreatePickup(1244, 1, x, y, z, 0); // Type 1, cannot be pickup up, exists all the time
// Add a 3DText message above the refuel-pickup
Create3DTextLabel("Tune and repair can be done here", 0x008080FF, x, y, z + 0.8, 30.0, 0);
SetPVarFloat(playerid, "xpos", x);
SetPVarFloat(playerid, "ypos", y);
SetPVarFloat(playerid, "zpos", z);
}
Well this is the code that should do it but its not working because of the Playerid:
Код:
C:\Users\Thimo\Desktop\Programmas\Mappen\Samp 2\filterscripts\F_Streamer.pwn(2139) : error 017: undefined symbol "playerid"
C:\Users\Thimo\Desktop\Programmas\Mappen\Samp 2\filterscripts\F_Streamer.pwn(2140) : error 017: undefined symbol "playerid"
C:\Users\Thimo\Desktop\Programmas\Mappen\Samp 2\filterscripts\F_Streamer.pwn(2141) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
These lines are the SetPVarFloat's Anyone know how to fix this? It cant be with Forward and Public but how to create the Defenition in this thing? Please help!
Re: Help needed with repair pickups -
[DJ]Boki - 07.04.2011
You got new update of server?
Re: Help needed with repair pickups -
thimo - 07.04.2011
not yet
Re: Help needed with repair pickups -
[DJ]Boki - 07.04.2011
So download update and open your script with new PAWNO