SA-MP Forums Archive
little help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: little help (/showthread.php?tid=156761)



little help - ToPhrESH - 24.06.2010

well i know how to add gates stuff like that to make it move but I have an area which is going to be captured and the gates only open to the people who has it.

also here is anothe rproblem
pawn Код:
SetTimerEx("TK",5000,0, %d, killerid);
problems
(207) : error 029: invalid expression, assumed zero
(207) : error 017: undefined symbol "d"
(207) : error 029: invalid expression, assumed zero
(207) : fatal error 107: too many error messages on one line



Re: little help - bigcomfycouch - 24.06.2010

Код:
SetTimerEx("TK", 5000, 0, "i", killerid);



Re: little help - Antonio [G-RP] - 24.06.2010

I know how to do it, but what does "i" stand for?


Re: little help - bigcomfycouch - 24.06.2010

Integer. "d" can be used too.


Re: little help - (SF)Noobanatior - 24.06.2010

i = intger d = decimal f = float s = string

hope that helps


One more addition to last question - ToPhrESH - 24.06.2010

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(gTeam[killerid] == gTeam[playerid])
    {
  SendClientMessage(killerid,0xAA3333AA,"You can't team kill,this is unfair,you are now frozen for 5 seconds.");
  TogglePlayerControllable(killerid,0);
  SetTimerEx("AA", 5000, 0, "i", killerid); //Teamkill
    }
    return 1;
}
public AA(playerid)
{
  TogglePlayerControllable(playerid, 1);
  SendClientMessage(playerid, 0xAA3333AA, "* You have been unfrozen!");
  return 1;
}
pawn Код:
forward AA();
(211) : error 025: function heading differs from prototype



Re: little help - bigcomfycouch - 24.06.2010

Код:
forward AA(playerid);



Re: little help - ToPhrESH - 25.06.2010

Quote:
Originally Posted by big comfy couch
Код:
forward AA(playerid);
Thanks alot!