[HELP] Teleport/spawn - 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: [HELP] Teleport/spawn (
/showthread.php?tid=96504)
[HELP] Teleport/spawn -
guaid - 08.09.2009
Error:
Код:
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(125) : warning 225: unreachable code
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(125) : error 029: invalid expression, assumed zero
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(125) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(127) : error 017: undefined symbol "playerid"
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(129) : error 017: undefined symbol "cmdtext"
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(131) : error 017: undefined symbol "playerid"
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(132) : warning 217: loose indentation
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(135) : warning 209: function "OnFilterScriptInit" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
pawn Код:
}
public OnPlayerSpawn(playerid, 2137.79, -2532.59, 15.91);
{
SetPlayerPos(playerid, 2137.79, -2532.59, 15.91);
}
if (strcmp("/lsairport", cmdtext, true, 11) == 0)
{
SetPlayerPos(playerid, 2137.79, -2532.59, 15.91);
return 1;
}
Re: [HELP] Teleport/spawn -
Clavius - 08.09.2009
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerPos(playerid, 2137.79, -2532.59, 15.91);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/lsairport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 2137.79, -2532.59, 15.91);
return 1;
}
return 0;
}
Re: [HELP] Teleport/spawn -
guaid - 08.09.2009
Код:
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(126) : warning 225: unreachable code
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(126) : error 029: invalid expression, assumed zero
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(126) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(130) : error 035: argument type mismatch (argument 1)
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(133) : warning 217: loose indentation
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(136) : warning 209: function "OnFilterScriptInit" should return a value
C:\Users\Svensson\Desktop\samp\samp02Xserver.win32\gamemodes\Guaid_fs.pwn(137) : warning 203: symbol is never used: "cmdtext"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
after i putted it in...
Re: [HELP] Teleport/spawn -
Clavius - 08.09.2009
post the whole code
Re: [HELP] Teleport/spawn -
guaid - 08.09.2009
This topic is finnished I got the answer pm'ed since i won't show the whole code to every1, Can be deleted by admin,