About this Jetpack stock
#1

.......
Reply
#2

pawn Код:
CMD:jetpack(playerid, params[])
{
   if(PlayerInfo[playerid][Admin] < 1) return SendClientMessage(playerid, 0xFFFFFF,"I love turtles");
   AC_BS_SetPlayerJetpack(playerid);
   return 1;
}

stock AC_BS_SetPlayerJetpack(playerid)
{
    SetPVarInt(playerid, "JetpackProtection",1);
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
    SetPVarInt(playerid, "SafeJet",1);
}
Reply
#3

pawn Код:
error 029: invalid expression, assumed zero
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
fatal error 107: too many error messages on one line
pawn Код:
stock AC_BS_SetPlayerJetpack(playerid)
{
    SetPVarFloat(playerid, "JetpackProtection",1);
    SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
    SetPVarFloat(playerid, "SafeJet",1);  //The line which contains all of those errors , in the .inc file
}

EDIT: Nevermind .-. fixed it. Thanks!
Reply
#4

He did a typing mistake
pawn Код:
SetPVarFloat(playerid. "SafeJet",1);
Change the dot "." to comma ",".

Nevertheless, they are not floats. Use SetPVarInt instead.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)