errors
#1

I want make teleport
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drylake", cmdtext, true, 10) == 0)
    {
        SetPlayerInterior(playerid,0)
        SetPlayerPos(playerid, 15.5371,1503.0522,12.7560);
        return 1;
    }
    return 0;
}
1 Error
pawn Код:
D:\Jocuri\Gta san andreas\Teleport.pwn(94) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

You forgot a ; at the end of a line.

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/drylake", cmdtext, true, 10) == 0)
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid, 15.5371,1503.0522,12.7560);
        return 1;
    }
    return 0;
}
Reply
#3

EDIT:
Started changed code/errors during writing my response
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)