SA-MP Forums Archive
[HELP] filtre script - 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] filtre script (/showthread.php?tid=185165)



[HELP] filtre script - Tom1412 - 23.10.2010

hi,

im trying to make my own filtre script but i keep getting errors and i dont understand why can someone help.

errors
PHP код:
C:\Users\tom\Desktop\pay gateopen.pwn(8) : warning 202number of arguments does not match definition
C
:\Users\tom\Desktop\pay gateopen.pwn(9) : error 029invalid expressionassumed zero
C
:\Users\tom\Desktop\pay gateopen.pwn(9) : warning 215expression has no effect
C
:\Users\tom\Desktop\pay gateopen.pwn(9) : error 001expected token";"but found ")"
C:\Users\tom\Desktop\pay gateopen.pwn(9) : error 029invalid expressionassumed zero
C
:\Users\tom\Desktop\pay gateopen.pwn(9) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

PHP код:
#include <a_samp>
#define COLOR_RED 0xAA3333AA
#define IsPlayerInRangeOfPoint(playerid,x,y,z)
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/pay"cmdtexttrue10) == 0)
    {
        if(
IsPlayerInRangeOfPoint(playerid,1110.4412,-1738.2471,13.4317))return SendClientMessage(playerid,COLOR_RED,"You are too far from the gate to pay");
        if(
GetPlayerMoney(playerid, < 500))return SendClientMessage(playerid,COLOR_RED,"You do not have enough money");
        if(
GetPlayerMoney(playerid, > 500))return SendClientMessage(playerid,COLOR_RED,"You have just paid and the gate is open");
        {
        
MoveObject(9801101.7249755859, -1741.276733398415.273958206177,2.0)
        }
        return 
1;
     }
     return 
0;




Re: [HELP] filtre script - Hiddos - 23.10.2010

Pawno usually prints out the errors and the things you do wrong:

pawn Код:
MoveObject(980, 1101.7249755859, -1741.2767333984, 15.273958206177,2.0)
Forgot a ';'.