SA-MP Forums Archive
Errors need a Fix - 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: Errors need a Fix (/showthread.php?tid=512956)



Errors need a Fix - weedxd - 13.05.2014

Error strikes i need help with them guys

PHP код:
    forward intfreeze(playerid);
    if(
strcmp(cmdtext"/enter"true) == 0)
    {
    if(
IsPlayerConnected(playerid))
       {
    if 
PlayerToPoint(5,playerid,-2080.7998356.992436.7698)
         *
then
         
{
           
SetPlayerPos(playerid,-1443.8389,-204.0373,1072.5171);
           
SetPlayerInterior(playerid,7);
           
PlayAudioStreamForPlayer(playerid"http://www.greudedifuzat.eu/greudedifuzat.m3u",-1479.73, -205.131081.50,5001);
           
SendClientMessage(playerid,COLOR_GREEN,"*** Welcome to San Fierro Cinema!");
           
TogglePlayerControllable(playeridfalse);
           
SetTimerEx("intfreeze"2000false"i"playerid);//Freeze the player for 2 seconds, for higher values replace "2000" with the wanted time in milliseconds
           
return 1;
         }
        }
    }
    public 
intfreeze(playerid)
    {
    return 
TogglePlayerControllable(playeridtrue);
    }
    if(
strcmp(cmdtext"/exit"true) == 0)
   {
    if(
IsPlayerConnected(playerid)) 
PHP код:
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\filterscripts\Cinema3D.pwn(234) : error 029invalid expressionassumed zero
C
:\Users\WeeD\Desktop\Okay\Mans CNR serveris\filterscripts\Cinema3D.pwn(234) : error 017undefined symbol "intfreeze"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\filterscripts\Cinema3D.pwn(252) : error 029invalid expressionassumed zero
C
:\Users\WeeD\Desktop\Okay\Mans CNR serveris\filterscripts\Cinema3D.pwn(252) : error 017undefined symbol "intfreeze"
C:\Users\WeeD\Desktop\Okay\Mans CNR serveris\filterscripts\Cinema3D.pwn(257) : warning 225unreachable code
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
4 Errors




Re: Errors need a Fix - Isolated - 13.05.2014

What are lines 234, 252, 257? Also, remove forward intfreeze(playerid) and add it at the top or the script outside any functions.


Re: Errors need a Fix - weedxd - 13.05.2014

Quote:
Originally Posted by Isolated
Посмотреть сообщение
What are lines 234, 252, 257? Also, remove forward intfreeze(playerid) and add it at the top or the script outside any functions.
PHP код:
234     forward intfreeze(playerid);
252     public intfreeze(playerid)
257     if(strcmp(cmdtext"/exit"true) == 0