little help please :D
#1

Код:
Код:
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!
Reply
#2

[pawn]public OnPlayerCommandText(playerid,cmdtext[])
{
if (strcmp("/offroad", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, -2674.5571,2878.6499,59.5691);
return 1;
}
return 0;
}
Reply
#3

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.
]
Reply
#4

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        //Replace with your command.
        return 1;
    }
    return 0;
}
Reply
#5

THANK YOU SO MUCH!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)