little help please :D - 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: little help please :D (
/showthread.php?tid=109382)
little help please :D -
krashis - 19.11.2009
Код:
Код:
hi ppl i need a littl help with teleport.
my telleport lines have some errors please help!
and sorry for bad english:D
here is the script or whatever it may be.
[public OnPlayerCommandText(playerid,cmdtext[])
if (strcmp("/offroad", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2674.5571,2878.6499,59.5691);
return 1;
}]
and here is the error
[(183) : warning 209: function "OnPlayerCommandText" should return a value]
i hope you can help me!
Re: little help please :D -
(.Aztec); - 19.11.2009
[pawn]public OnPlayerCommandText(playerid,cmdtext[])
{
if (strcmp("/offroad", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2674.5571,2878.6499,59.5691);
return 1;
}
return 0;
}
Re: little help please :D -
krashis - 19.11.2009
now its showing
[C:\Documents and Settings\Kristaps\Desktop\serveris\pawno\offroad.p wn(177) : error 010: invalid function or declaration
C:\Documents and Settings\Kristaps\Desktop\serveris\pawno\offroad.p wn(179) : error 010: invalid function or declaration
C:\Documents and Settings\Kristaps\Desktop\serveris\pawno\offroad.p wn(182) : error 010: invalid function or declaration
C:\Documents and Settings\Kristaps\Desktop\serveris\pawno\offroad.p wn(184) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
]
Re: little help please :D -
(.Aztec); - 19.11.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
//Replace with your command.
return 1;
}
return 0;
}
Re: little help please :D -
krashis - 19.11.2009
THANK YOU SO MUCH!!!!!