Alright, I've been trying to fix a error on my gm edit but, Im seeming to fail...
This code seems to be bothering something but I don't know. When I try to compile I get this error error 017: undefined symbol "string"
HTML Code:
{
if(strcmp(cmd, "/garage", true) == 0)
{
new name[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
GetPlayerName(playerid, name, sizeof(name));
{
if(IsPlayerInRangeOfPoint(playerid, 3, 1191.73474121, -1429.05712891, 12.27041435))
{
if(IsGateOpen == 0)
{
MoveDynamicObject(Garage, 1191.73474121+7,-1429.05712891,12.27041435,0.97);
IsGateOpen = 1;
format(string, sizeof(string), "* %s slides their card and opens the gate", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
if(IsGateOpen == 1)
{
MoveDynamicObject(Garage, 1191.73474121,-1429.05712891,12.27041435,0.97);
IsGateOpen = 0;
format(string, sizeof(string), "* %s slides their card and closes the gate", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
return 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 12.0, 1191.93005371, -1562.27209473, 12.38281250))
{ //Allsaints gate 2
if(IsGateOpened == 0)
{
IsGateOpened = 1;
MoveDynamicObject(Garageone, 1191.93005371+7, -1562.27209473, 12.38281250, 12.38281250);
format(string, sizeof(string), "* %s slides their card and opens the gate", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(IsGateOpened==1)
{
IsGateOpened = 0;
MoveDynamicObject(Garageone, 1191.93005371, -1562.27209473, 12.38281250, 12.38281250);
format(string, sizeof(string), "* %s slides their card and closes the gate", name);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
}