Detaljan opis problema:Imam par errora
Dio skripte:
CMD:shopboombox(playerid, params[])
{
if (PlayerInfo < 1);
{
SendClientMessageEx(playerid, COLOR_GREY, " You are not allowed to use this command.");
return 1;
}
new giveplayerid, invoice;
if(sscanf(params, "ui", giveplayerid, invoice)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /shopboombox [invoice #]");
new string;
if(PlayerInfo == 1)
{
PlayerInfo = 0;
format(string, sizeof(string), "Your boombox has been taken by Shop Tech %s. ", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " %s has taken %s boombox - Invoice %d", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), invoice);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
Log("logs/shoplog.log", string);
}
else
{
PlayerInfo = 1;
format(string, sizeof(string), "You have been given a boombox from Shop Tech %s. ", GetPlayerNameEx(playerid));
SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " %s has given %s a boombox - Invoice %d", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), invoice);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
Log("logs/shoplog.log", string);
}
public OnPlayerEnterDynamicArea(playerid, areaid)
{
foreach(Player, i)
{
if(GetPVarType(i, "pBoomBoxArea"))
{
if(areaid == GetPVarInt(i, "pBoomBoxArea"))
{
new station;
GetPVarString(i, "pBoomBoxStation", station, sizeof(station));
if(!isnull(station))
{
PlayAudioStreamForPlayerEx(playerid, station, GetPVarFloat(i, "pBoomBoxX"), GetPVarFloat(i, "pBoomBoxY"), GetPVarFloat(i, "pBoomBoxZ"), 30.0, 1);
}
return 1;
}
}
}
if(areaid == audiourlid)
{
PlayAudioStreamForPlayerEx(playerid, audiourlurl, audiourlparams, audiourlparams, audiourlparams, audiourlparams, 1);
}
return 1;
}
public OnPlayerLeaveDynamicArea(playerid, areaid)
{
foreach(Player, i)
{
if(GetPVarType(i, "pBoomBoxArea"))
{
if(areaid == GetPVarInt(i, "pBoomBoxArea"))
{
StopAudioStreamForPlayerEx(playerid);
return 1;
}
}
}
if(areaid == audiourlid)
{
StopAudioStreamForPlayerEx(playerid);
}
return 1;
}
return 1;Neke slike/video za lakse dobivanje pomoci(neobavezno): //
ERRORI:
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23773) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23773) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23773) : warning 215: expression has no effect
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23773) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23773) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Linija di izbacuje error:
if (PlayerInfo < 1);