Skydive - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Skydive (
/showthread.php?tid=331507)
Skydive -
dannyk0ed - 05.04.2012
pawn Код:
CMD:skydrive(playerid)
{
if (UserFile[playerid][uAdmin] >= 2)
{
GetPlayerPos(playerid, rx, ry, rz);
{
GivePlayerWeapon(playerid, 46, 0);
SetPlayerPos(playerid,rx, ry, rz+1500);
SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;
}
I get a error on
pawn Код:
SetPlayerPos(playerid,rx, ry, rz+1500);
Re: Skydive -
ViniBorn - 05.04.2012
what error?
Re: Skydive -
dannyk0ed - 05.04.2012
pawn Код:
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1398) : error 017: undefined symbol "rx"
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1401) : error 017: undefined symbol "rx"
C:\Users\Danny\Desktop\Server\gamemodes\new.pwn(1410) : error 010: invalid function or declaration
pawn Код:
CMD:skydrive(playerid)
{
if (UserFile[playerid][uAdmin] >= 2)
{
GetPlayerPos(playerid, rx, ry, rz);//1398
{
GivePlayerWeapon(playerid, 46, 0);
SetPlayerPos(playerid,rx, ry, rz+1500);//1401
SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}
}
return 1;//1410
}
Re: Skydive -
dannyk0ed - 05.04.2012
Small Bump
Re: Skydive -
antonio112 - 05.04.2012
pawn Код:
CMD:skydrive(playerid)
{
if (UserFile[playerid][uAdmin] >= 2)
{
new Float:Pos[4];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
{
GivePlayerWeapon(playerid, 46, 0);
SetPlayerPos(playerid, Pos[0], Pos[1], Pos[2] +1500);
SendClientMessage(playerid, COLOR_WHITE, "GO!! GO!! GO!!");
return 1;
}
}
else return SendClientMessage(playerid, COLOR_GRAD1, " you are not authorized to use that command!");
}