Error:
"error 021: symbol already defined: "tresorgate"
error 010: invalid function or declaration
"
new tresorgate;
tresorgate= CreateObject(8957, 2144.55786, 1626.94324, 993.72168, 0.00000, 0.00000, 90.00000);
if(strcmp(cmd,"/tresor", true) == 0)
{
MoveObject(tresorgate, 2149.0689, 1626.9432, 993.7217, 3.0);
SetTimer("tresortimer", 5000, 0);
SendClientMessage(playerid, COLOR_YELLOW,"Du hast die Tresortür geöffnet");
return 1;
}
Function tresorgate()
{
MoveObject(tresorgate,2146.63989, 1626.94324, 993.72168, 3.0);
return 1;
}