Giving me errors
#1

I Do this :


Quote:

// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
if(!strcmp(cmdtext, "/enter", true, 6))
{
IsPlayerInRangeOfPoint(playerid, 11, 2309.9289,-1643.6259,14.8270);
{
SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
}
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

it give me this

Quote:

D:\NEXTEV~1\FILTER~1\TGB~1.PWN(11) : error 017: undefined symbol "cmdtext"
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(13) : error 017: undefined symbol "playerid"
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(15) : error 017: undefined symbol "playerid"
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(17) : warning 217: loose indentation
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(23) : error 029: invalid expression, assumed zero
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(23) : error 004: function "OnFilterScriptExit" is not implemented
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(3 : error 030: compound statement not closed at the end of file (started at line 11)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


6 Errors.

What's wrong ??
Reply
#2

Quote:
Originally Posted by Mr.Black
Посмотреть сообщение
What's wrong ??
Everything !

Now it's more simple and correct:

PHP код:
#define FILTERSCRIPT
#include <a_samp>
public OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/enter"true6))
    {
        if(
IsPlayerInRangeOfPoint(playerid112309.9289,-1643.6259,14.8270)) return SetPlayerPos(playerid501.980987,-69.150199,998.757812);
        return 
1;
    }
    return 
0;

Reply
#3

did that


Quote:

#define FILTERSCRIPT

#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter", true, 6))
{
IsPlayerInRangeOfPoint(playerid, 11, 2309.9289,-1643.6259,14.8270) return SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
return 1;
}
return 0;
}

and that happened :




Quote:

D:\NEXTEV~1\FILTER~1\TGB~1.PWN(9) : error 001: expected token: ";", but found "return"
D:\NEXTEV~1\FILTER~1\TGB~1.PWN(10) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Reply
#4

Quote:
Originally Posted by Mr.Black
Посмотреть сообщение
did that




and that happened :
pawn Код:
#define FILTERSCRIPT

#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter", true, 6))
{
IsPlayerInRangeOfPoint(playerid, 11, 2309.9289,-1643.6259,14.8270)) return SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
}
return 0;
}
Reply
#5

Код:
#define FILTERSCRIPT

#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/enter", true, 6))
    {
        IsPlayerInRangeOfPoint(playerid, 11, 2309.9289,-1643.6259,14.8270); 
        SetPlayerPos(playerid, 501.980987,-69.150199,998.757812);
        return 1;
    }
    return 0;
}
Reply
#6

You all forgot this:

pawn Код:
if(<--that
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 11.0, 2309.9289,-1643.6259,14.8270))
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)