SA-MP Forums Archive
[HELP]Error 010 , Error 029 , Warning 203 - 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: [HELP]Error 010 , Error 029 , Warning 203 (/showthread.php?tid=622730)



[HELP]Error 010 , Error 029 , Warning 203 - riskw22 - 26.11.2016

Help me Pliss , I'm Newbie

Error :
PHP код:
C:\Users\User\Music\move.pwn(7) : error 010invalid function or declaration
C
:\Users\User\Music\move.pwn(10) : error 029invalid expressionassumed zero
C
:\Users\User\Music\move.pwn(25) : warning 203symbol is never used"S@@_OnPlayerCommandText"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

Script :
PHP код:
#include <a_samp>
#include <YSI\y_ini>
new gate;
//=====================================================================================//
gate == CreateObject(9752719.65112, -2405.5127014.10740,   0.000000.0000090.00000);
public 
OnFilterScriptInit()
public 
OnPlayerCommandText(playeridcmdtext[])
{
if (
strcmp("/opengate"cmdtexttrue10) == 0)
{
         
MoveObject(Gate,2719.65112, -2397.1525914.107400.97);
         
SetTimer("gateclose"50000);
}
return 
1;
}
forward gateclose();
public 
gateclose()
{
     
MoveObject(gate2719.65112, -2405.5127014.107400.97);
     return 
1;




Re: [HELP]Error 010 , Error 029 , Warning 203 - iamjems - 26.11.2016

PHP код:
gate CreateObject(9752719.65112, -2405.5127014.10740,   0.000000.0000090.00000);
public 
OnFilterScriptInit()
{
    return 
1;

Do not use == if it's not in an if function. Example: if(GetPlayerMoney(playerid) == 100).