[HELP] WHAT'S WRONG ?
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])

 if(strcmp(cmdtext, "/eup", true) == 0) { 
   MoveObject(elevator, 1840.252563, -1662.095337, 112.666771, 3.00); 
   SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait."); 
   }
 if(strcmp(cmdtext, "/edown", true) == 0) { 
   MoveObject(elevator, 1840.252563, -1662.095337, 58.791744, 3.00); 
   SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait.");
   return 1;
   }
Код:
C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\MAP.pwn(93) : error 010: invalid function or declaration
C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\FILTER~1\MAP.pwn(96) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
HELP PLEASEEEEEEEEEEEEEEEEEEEEEEEEEEEE !
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/eup", true) == 0)
    {
        MoveObject(elevator, 1840.252563, -1662.095337, 112.666771, 3.00);
        SendClientMessage(playerid, COLOR_RED, "You are now going up, Please Wait.");
        return 1;
    }

    if(strcmp(cmdtext, "/edown", true) == 0)
    {
        MoveObject(elevator, 1840.252563, -1662.095337, 58.791744, 3.00);
        SendClientMessage(playerid, COLOR_RED, "The Elevator is now comming, Please Wait.");
        return 1;
    }
    return 0;
}
Reply
#3

Thanks, now compile , but the elevator dosen't move
Reply
#4

HELP PLEASEEEE
Reply
#5

Where is the:
Код:
new elevator;
And the

Код:
Elevator = CreateObject(x,y,z......);
Reply
#6

LoL,

im not too much noob .

why dosen't move ?
Reply
#7

[quote=ToD ]
Where is the:
Код:
new elevator;
And in the OnGameModeInit() put

pawn Код:
elevator = CreateObject(elevator ObjectID, ... so on);
Reply
#8

You Got Any Streamer??
if You Got Do.....
MoveStreamObject(objectID,X,Y,Z,Speed);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)