Help! More teleport
#1

Quote:

C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(32) : warning 202: number of arguments does not match definition
C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(32) : warning 202: number of arguments does not match definition
C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(36) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

Reply
#2

Show us lines 32 and 36.
Reply
#3

32-36:
Quote:

SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908, 178.3117, cmdtext);
return 1;
}

}

Whole teleport:
Quote:

if (!strcmp("/drag", cmdtext, true))
{
SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908, 178.3117, cmdtext);
return 1;
}

}

Reply
#4

Код:
SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908);
Reply
#5

Now it's just this. Idk if I can ignore this?
Quote:

C:\Users\Hampus\Desktop\Freeroam\filterscripts\LSa irLVairSFairAA.pwn(36) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.

Reply
#6

put

Код:
 return 0;
at the end of OnPlayerCommandText, and you should be fixed
Reply
#7

Thanks

Just one more question...

So this is correct? :P
Quote:

if (!strcmp("/drag", cmdtext, true))
{
SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.690;
return 1;
}
return 0;
}

Reply
#8

pawn Код:
public OnPlayerCommandText
{    
     if (!strcmp("/drag", cmdtext, true))
    {
        SetPlayerPos(playerid, -2681.8916, 1296.6348, 55.6908);
        return 1;
    }
    return 0;
}
Reply
#9

Danke!!
Reply
#10

Your welcome we are here to help .

[Doppeyy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)