[HOW-TO] Make An Automatic Gate (NOT BY ME!)
#10

I do like this:
[PAWN code]
public OnGameModeInit()
Object=CreateObject(988,2142.0913,1009.7625,10.479 2,2141.7197,1022.5601,10.4795);

[PAWN code]
public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/gate move1", cmdtext, true, 10) == 0)
{
MoveObject(988,2142.0913,1009.7625,10.4792,1.50000 0);
return 1;
}
if(!strcmp("/gate move2", cmdtext, true, 10) == 0)
{
MoveObject(988,2141.7197,1022.5601,10.4795,1.50000 0);
return 1;
}
return 0;
}

And than..
C:\Documents and Settings\Rok\Desktop\SAMP server\gamemodes\thaidk.pwn(22 : warning 213: tag mismatch
C:\Documents and Settings\Rok\Desktop\SAMP server\gamemodes\thaidk.pwn(233) : warning 213: tag mismatch
C:\Documents and Settings\Rok\Desktop\SAMP server\gamemodes\thaidk.pwn(164) : warning 204: symbol is assigned a value that is never used: "Object"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

Why?! what must i do? to fix?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)