Teleport error.
#1

Hello. I've created a teleport for my mod and it won't work, please help.

the whole project:

PHP код:
if(strcmp(cmdtext"/fight"true)==0)
{
    
SetPlayerPos(playerid, -1478.50381488.96908.2501);
    
SetPlayerFacingAngle(playerid3970,17);
    
SendClientMessage(playerid0x33AA33AA"Welcome to the Fighting Zone");
    return 
1;

The error:

PHP код:
C:\Documents and Settings\User\Desktop\Og's EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(210) : warning 202: number of arguments does not match definition
C:\Documents and Settings\User\Desktop\Og'
s EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(361) : error 010invalid function or declaration
C
:\Documents and Settings\User\Desktop\Og's EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(366) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
2 Errors. 
Reply
#2

SetPlayerFacingAngle(playerid, 3970,17);

3970,17 should be 3970.17
Reply
#3

Nope.
Look:
PHP код:
C:\Documents and Settings\User\Desktop\Og's EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(210) : warning 202: number of arguments does not match definition
C:\Documents and Settings\User\Desktop\Og'
s EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(283) : error 010invalid function or declaration
C
:\Documents and Settings\User\Desktop\Og's EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(288) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\Og'
s EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(367) : error 010invalid function or declaration
C
:\Documents and Settings\User\Desktop\Og's EmPire\samp03csvr_win32\gamemodes\lvdm.pwn(372) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
4 Errors. 
Reply
#4

Quote:

SetPlayerFacingAngle(playerid, 3970,17);

The max is 270 isn't it?
Reply
#5

pawn Код:
SetPlayerFacingAngle(playerid, 3970,17)
3970,17 should be a angle like : 0 or 360 is north 180 is shouth etc...
Reply
#6

So can you give me the whole CMD, please?
Reply
#7

pawn Код:
if(strcmp(cmdtext, "/fight", true)==0)
{
    SetPlayerPos(playerid, -1478.5038, 1488.9690, 8.2501);
    SetPlayerFacingAngle(playerid, 270);
    SendClientMessage(playerid, 0x33AA33AA, "Welcome to the Fighting Zone");
    return 1;
}
Reply
#8

Quote:
Originally Posted by Oglevempire
Посмотреть сообщение
Nope.
Yes.

pawn Код:
SetPlayerFacingAngle(playerid, 3970.17);
Wont cause any errors. You obviously have issues elsewhere.

Also, what the fuck is line 210, 283, 288, and 367?

Post them line by line or learn to debug.

Also, use [ pawn ] and [ / pawn ] .. It's there for a reason
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)