SA-MP Forums Archive
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: Help! (/showthread.php?tid=133029)



Help! - RyanZ - 10.03.2010

C:\Users\Drake\Downloads\The Forsaken\The Forsaken\gamemodes\lsrl(1836) : error 012: invalid function call, not a valid address
C:\Users\Drake\Downloads\The Forsaken\The Forsaken\gamemodes\lsrl(1836) : warning 215: expression has no effect
C:\Users\Drake\Downloads\The Forsaken\The Forsaken\gamemodes\lsrl(1836) : warning 215: expression has no effect
C:\Users\Drake\Downloads\The Forsaken\The Forsaken\gamemodes\lsrl(1836) : error 001: expected token: ";", but found ")"
C:\Users\Drake\Downloads\The Forsaken\The Forsaken\gamemodes\lsrl(1836) : error 029: invalid expression, assumed zero
C:\Users\Drake\Downloads\The Forsaken\The Forsaken\gamemodes\lsrl(1836) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Please help me


Re: Help! - bajskorv123 - 10.03.2010

Please show the error lines

Yes the whole part of the code then (Post whole command if its a command, whole function if its a function etc.)


Re: Help! - RyanZ - 10.03.2010

ublic Tazed(playerid)
{
if(IsPlayerConnected(playerid))
{
playerinfo[playerid][taze]--;
if(playerinfo[playerid][taze]>-1)
{
SetTimerEx("Tazed",1000,0,"d",playerid);
}
else
{
1836 Freeze(playerid,0);
ClearAnimations(playerid);
playerinfo[playerid][afk]=0;
}

}
}


Re: Help! - RyanZ - 10.03.2010

the ''1836'' is the line


Re: Help! - RyanZ - 10.03.2010

None? :S


Re: Help! - Desert - 10.03.2010

Try TogglePlayerControllable(playerid,0);


Re: Help! - bajskorv123 - 10.03.2010

Instead of Freeze(playerid,0); Use TogglePlayerControllable(playerid, 0);

Or put this at bottom of your script:
pawn Код:
stock Freeze(playerid, toggle)
{
  TogglePlayerControllable(playerid, toggle);
}