public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/open", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,-833.12, 1435.20, 13.65))
{
MoveObject(tor,-833.12, 1435.20, 10.88, 2);
SendClientMessage(playerid,Weiß,"Das Tor schliesst sich in 5 Sekunden!");
SetTimer("close", 5000,0);
return 1;
}
}
}
Diesen Error hatte Ich beim Compilen
ZitatAlles anzeigen
C:\Users\Enes\Desktop\Server\gamemodes\aanew.pwn(19) : error 001: expected token: ";", but found "public"
C:\Users\Enes\Desktop\Server\gamemodes\aanew.pwn(38) : warning 202: number of arguments does not match definition
C:\Users\Enes\Desktop\Server\gamemodes\aanew.pwn(38) : warning 202: number of arguments does not match definition
C:\Users\Enes\Desktop\Server\gamemodes\aanew.pwn(140) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.