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



Big Teleport Problem :( - XxerykxX - 11.07.2009

Hey.

So I have big teleport problem the problem is :

if i put into my gm .pwn this :
Код:
if(strcmp(cmdtext, "/bmx", true) == 0)
  SetPlayerPos(playerid,2806.047851, -1066.034179, 94.187072);
the teleport is working but i am getting "Unknown Command"
if i put into my gm .pwn this :
Код:
if(strcmp(cmdtext, "/bmx", true) == 0)
  SetPlayerPos(playerid,2806.047851, -1066.034179, 94.187072);
  GameTextForPlayer(playerid,"Welcome To BMX",1700, 3);
  return 1;
}
I am getting these errors :
Код:
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(126) : warning 203: symbol is never used: "moneys"
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(126) : warning 203: symbol is never used: "giveplayerid"
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(124) : warning 204: symbol is assigned a value that is never used: "giveplayer"
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(123) : warning 204: symbol is assigned a value that is never used: "sendername"
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(122) : warning 203: symbol is never used: "playermoney"
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(121) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(121 -- 159) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(161) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(163) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(165) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(169) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(170) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(172) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(179) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(183) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(192) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(196) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(200) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(206) : error 010: invalid function or declaration
C:\Documents and Settings\Mariusz\Pulpit\Stunt Server\gamemodes\istunts.pwn(653) : warning 203: symbol is never used: "tmp"
Pls can somebody help me ?

#EDIT

Or can somebody tell me how to make command??


Re: Big Teleport Problem :( - happyface - 11.07.2009

you havnt added an open bracket to your second command example. {

pawn Код:
if(strcmp(cmdtext, "/bmx", true) == 0)
    {
        SetPlayerPos(playerid,2806.047851, -1066.034179, 94.187072);
        GameTextForPlayer(playerid,"Welcome To BMX",1700, 3);
        return 1;
    }



Re: Big Teleport Problem :( - XxerykxX - 11.07.2009

where should i put the bracket


Re: Big Teleport Problem :( - saiberfun - 11.07.2009

Quote:
Originally Posted by XxerykxX
where should i put the bracket
use the pawncode of happyface he added it already!


Re: Big Teleport Problem :( - XxerykxX - 11.07.2009

Thank You


Re: Big Teleport Problem :( - Criss_Angel - 11.07.2009

Hey,

If SetGameTextForPlayer does the writing come in the chat place or on Screen ?


Re: Big Teleport Problem :( - abhinavdabral - 11.07.2009

GameText - comes on Screen
SendClientMessage - comes in chat console


Re: Big Teleport Problem :( - Criss_Angel - 13.07.2009

Quote:
Originally Posted by ۞●•λвнiиаv•●۞
GameText - comes on Screen
SendClientMessage - comes in chat console
oh thanks, also when i add skins to my GM and i go IG the skins don't appear it just shows a blank screen


Re: Big Teleport Problem :( - dice7 - 13.07.2009

You add skins with AddPlayerClass

https://sampwiki.blast.hk/wiki/AddPlayerClass

And you don't see the skins, because you probably copied the OnPlayerRequestClass from the pawno blank gamemode, where the player and camera coordinates are the same and therefor the camera is inside the player, that's why you can't see it. Just move the cam - change the coords a little