Necesito ayuda con este cmd lo busque en una pag y me dieron solo esto necesito ayuda lo pegue en la ultima linea del gm y me tira esto errores
aqui el cmd:
zcmd(asellhouse, playerid, params[])
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(!sscanf(params, "i", params[0]))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /asellhouse [houseid]");
return 1;
}
new house = params[1];
if (Informacion[playerid][pAdmin] >= 4)
{
HouseInfo[house][hHel] = 0;
HouseInfo[house][hArm] = 0;
HouseInfo[house][hHealthx] = 0;
HouseInfo[house][hHealthy] = 0;
HouseInfo[house][hHealthz] = 0;
HouseInfo[house][hArmourx] = 0;
HouseInfo[house][hArmoury] = 0;
HouseInfo[house][hArmourz] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
HouseInfo[house][hVec] = 418;
HouseInfo[house][hVcol1] = -1;
HouseInfo[house][hVcol2] = -1;
strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~You have sold this Casas", HouseInfo[house][hValue]);
GameTextForPlayer(playerid, string, 10000, 3);
OnPropUpdate();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not an admin.");
}
}
return 1;
}
Aqui los errores:
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : error 017: undefined symbol "Informacion"
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : warning 215: expression has no effect
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : error 001: expected token: ";", but found "]"
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : error 029: invalid expression, assumed zero
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : fatal error 107: too many error messages on one line
aqui el cmd:
zcmd(asellhouse, playerid, params[])
{
new string[256];
new playername[MAX_PLAYER_NAME];
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, playername, sizeof(playername));
if(!sscanf(params, "i", params[0]))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /asellhouse [houseid]");
return 1;
}
new house = params[1];
if (Informacion[playerid][pAdmin] >= 4)
{
HouseInfo[house][hHel] = 0;
HouseInfo[house][hArm] = 0;
HouseInfo[house][hHealthx] = 0;
HouseInfo[house][hHealthy] = 0;
HouseInfo[house][hHealthz] = 0;
HouseInfo[house][hArmourx] = 0;
HouseInfo[house][hArmoury] = 0;
HouseInfo[house][hArmourz] = 0;
HouseInfo[house][hLock] = 1;
HouseInfo[house][hOwned] = 0;
HouseInfo[house][hVec] = 418;
HouseInfo[house][hVcol1] = -1;
HouseInfo[house][hVcol2] = -1;
strmid(HouseInfo[house][hOwner], "The State", 0, strlen("The State"), 255);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "~w~You have sold this Casas", HouseInfo[house][hValue]);
GameTextForPlayer(playerid, string, 10000, 3);
OnPropUpdate();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "You are not an admin.");
}
}
return 1;
}
Aqui los errores:
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : error 017: undefined symbol "Informacion"
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : warning 215: expression has no effect
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : error 001: expected token: ";", but found "]"
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : error 029: invalid expression, assumed zero
C:\Users\Jesus\Desktop\Zenoxcity\gamemodes\Zenoxcity.pwn(50016) : fatal error 107: too many error messages on one line