SA-MP Forums Archive
Teleport error. - 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: Teleport error. (/showthread.php?tid=223938)



Teleport error. - Oglevempire - 10.02.2011

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. 



Re: Teleport error. - BMUK - 10.02.2011

SetPlayerFacingAngle(playerid, 3970,17);

3970,17 should be 3970.17


Re: Teleport error. - Oglevempire - 10.02.2011

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. 



Re: Teleport error. - XoX - 10.02.2011

Quote:

SetPlayerFacingAngle(playerid, 3970,17);

The max is 270 isn't it?


Re: Teleport error. - marinov - 10.02.2011

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


Re: Teleport error. - Oglevempire - 10.02.2011

So can you give me the whole CMD, please?


Re: Teleport error. - marinov - 10.02.2011

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;
}



Re: Teleport error. - BMUK - 10.02.2011

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