[Pomoc] Boombox

Započeo Mauricije, Novembar 24, 2012, 13:18:28 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:zGaming
Detaljan opis problema:Imam par errora
Dio skripte: CMD:shopboombox(playerid, params[])
{
if (PlayerInfo[playerid][pShopTech][pAdmin] < 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 [player] [invoice #]");
new string[128];

if(PlayerInfo[giveplayerid][pBoombox] == 1)
{
PlayerInfo[giveplayerid][pBoombox] = 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), "[SHOPBOOMBOX] %s has taken %s boombox - Invoice %d", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), invoice);
SendClientMessageEx(playerid, COLOR_GRAD1, string);
Log("logs/shoplog.log", string);
}
else
{
PlayerInfo[giveplayerid][pBoombox] = 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), "[SHOPBOOMBOX] %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[256];
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[0], audiourlparams[1], audiourlparams[2], audiourlparams[3], 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[playerid][pShopTech][pAdmin] < 1);
Poslednja Izmena: Novembar 24, 2012, 16:02:30 POSLE PODNE od [E:RP] Danijel96.pwn

postaj linije ovdje di ti baca to.


Stari covek

Na kraju nekog uslova (if) neide ;, a i jel si siguran da ti je toliki niz zar nebi trebalo ovako
if (PlayerInfo[playerid][pShopTech][pAdmin] < 1);
treba: if (PlayerInfo[playerid][pShopTech] < 1)
A ako zelis da bude i admin onda ide:
if (PlayerInfo[playerid][pShopTech] < 1 || PlayerInfo[playerid][pAdmin]<1)

Onda dobijem ovo

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(23775) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23780) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23783) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23785) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23786) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23787) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23788) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23789) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23794) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23795) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23796) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23797) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23798) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23801) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23801) : error 004: function "OnPlayerEnterDynamicArea" is not implemented
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23807) : error 017: undefined symbol "areaid"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23813) : error 017: undefined symbol "PlayAudioStreamForPlayerEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23819) : error 017: undefined symbol "areaid"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 017: undefined symbol "PlayAudioStreamForPlayerEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : warning 215: expression has no effect
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


23 Errors.

Stari covek

Citat: [GL]Milf-Hunter poslato Novembar 25, 2012, 10:06:54 PRE PODNE
Onda dobijem ovo

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(23775) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23780) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23783) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23785) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23786) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23787) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23788) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23789) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23794) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23795) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23796) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23797) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23798) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23801) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23801) : error 004: function "OnPlayerEnterDynamicArea" is not implemented
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23807) : error 017: undefined symbol "areaid"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23813) : error 017: undefined symbol "PlayAudioStreamForPlayerEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23819) : error 017: undefined symbol "areaid"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 017: undefined symbol "PlayAudioStreamForPlayerEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : warning 215: expression has no effect
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


23 Errors.

Pa pola stvari nisi definisao :)

Citat: Gagi_ poslato Novembar 25, 2012, 10:47:45 PRE PODNE
Citat: [GL]Milf-Hunter poslato Novembar 25, 2012, 10:06:54 PRE PODNE
Onda dobijem ovo

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(23775) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23780) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23783) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23785) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23786) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23787) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23788) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23789) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23794) : error 017: undefined symbol "pBoombox"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23795) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23796) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23797) : error 017: undefined symbol "GetPlayerNameEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23798) : error 017: undefined symbol "SendClientMessageEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23801) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23801) : error 004: function "OnPlayerEnterDynamicArea" is not implemented
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23807) : error 017: undefined symbol "areaid"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23813) : error 017: undefined symbol "PlayAudioStreamForPlayerEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23819) : error 017: undefined symbol "areaid"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 017: undefined symbol "PlayAudioStreamForPlayerEx"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : warning 215: expression has no effect
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Mauro\Desktop\Kopija od zGamingRoleplay\gamemodes\ZRP.pwn(23821) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


23 Errors.

Pa pola stvari nisi definisao :)
a tek sam poceo skriptat pa ono xD kako sad to napravim?

Updatuj server na 0.3e, to je prvo, drugo, kada to uradis, vidi sta ti je ostalo, pa ti definisi

Stari covek

Ono Ex ti ne treba nigde sada sam pogledao kod. SendClientMessage ide bez Ex i ono ostalo...
A pBoomBox definisi u enumu za PlayerInfo