Hey I've been trying to make a simple plugin that teleports players to a set of coordinates after using, and I've ran into an issue : "(35) : error 047: array sizes do not match, or destination array is too small"
PHP Code:
#pragma semicolon 1
#define DEBUG
#define PLUGIN_AUTHOR "crazy"
#define PLUGIN_VERSION "0.00"
#include <sourcemod>
#include <sdktools>
#include <tf2>
#include <tf2_stocks>
//#include <sdkhooks>
public Plugin myinfo =
{
name = "event teleport",
author = PLUGIN_AUTHOR,
description = "teleport",
version = PLUGIN_VERSION,
url = "sun"
};
public void OnPluginStart()
{
RegAdminCmd("sm_tele_event", Cmd_EventRoom, ADMFLAG_GENERIC);
}
public Action Cmd_EventRoom(client, args)
{
char eventRoom[37];
eventRoom = "-5179.598633 3668.097900 -1640.649414";
if (IsPlayerAlive(client))
{
TeleportEntity(client, eventRoom, NULL_VECTOR, NULL_VECTOR); //error here
}
else
{
EmitSoundToClient(client, "buttons/button8.wav");
PrintToChat(client, "Must Be Alive");
}
}