[Pomoc] u Vezi /spec

Započeo Zenga1998, Jun 11, 2011, 13:12:34 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GF edit
Detaljan opis problema:Pa imam errore na /spec a neznam kako ih popravit
Dio skripte:

if (strcmp(cmd, "/spec", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
if (PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "KORISTI: /spec [playerid/Dio Imena]");
return 1;
}
           giveplayerid = ReturnUser(tmp);
           new Float:Health, Float:Armour;
           new World = GetPlayerVirtualWorld(playerid);
           new PlInterior = GetPlayerInterior(playerid);
           new weaponid, ammo;
           GetPlayerHealth(playerid, Health);
           GetPlayerArmour(playerid, Armour);
if(IsPlayerConnected(giveplayerid))
{
   if(giveplayerid != INVALID_PLAYER_ID)
   {
                       if(Spectate[playerid] == 255)
{
   GetPlayerPos(playerid, TeleportDest[playerid][0],TeleportDest[playerid][1],TeleportDest[playerid][2]);
                           if(PlayerInfo[playerid][pAdmin] >= 6)
{
   if(PlayerInfo[playerid][pAdmin] == 1)
{
   for (new i=0; i<13; i++)
{
GetPlayerWeaponData(playerid, i, weaponid, ammo);
                                       OtherWeapons[playerid][i] = weaponid;
OtherAmmo[playerid][i] = ammo;
}
SpHealth[playerid] = Health;
SpArmour[playerid] = Armour;
}
else
{
   SaveGuns(playerid);
   PlayerInfo[playerid][pHealth] = Health;
   PlayerInfo[playerid][pArmour] = Armour;
}
}
else
{
   SaveGuns(playerid);
   PlayerInfo[playerid][pHealth] = Health;
PlayerInfo[playerid][pArmour] = Armour;
}
}
Interior[playerid] = PlInterior;
VirWorld[playerid] = World;
TogglePlayerSpectating(playerid, 1);
       if(IsPlayerInAnyVehicle(giveplayerid)) { PlayerSpectateVehicle(playerid, GetPlayerVehicleID(giveplayerid)); }
       else { PlayerSpectatePlayer(playerid, giveplayerid); }
       Spectate[playerid] = giveplayerid;
       SafeSetPlayerInterior(playerid, GetPlayerInterior(giveplayerid));
       SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "[ADMIN]: %s Spec-a %s (%d).", sendername, giveplayer, giveplayerid);
SendAdminMessage(COLOR_LIGHTRED,string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sada promatrate ovoga igraca. Ako zelite prestati Koristi /endspec <playerid>");
                       TextDrawHideForPlayer(playerid, Textdraw44);
    TextDrawHideForPlayer(playerid, Textdraw45);
    TextDrawHideForPlayer(playerid, Textdraw55);
    TextDrawHideForPlayer(playerid, Textdraw51[playerid]);
    TextDrawShowForPlayer(playerid, Textdraw54[playerid]);
    if(PlayerInfo[playerid][pWatch] == 1)
{
TextDrawHideForPlayer(playerid, Textdraw56);
TextDrawHideForPlayer(playerid, Textdraw57);
TextDrawHideForPlayer(playerid, Textdraw58);
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s is speccing %s's",d,m,y,h,mi,s,sendername,giveplayer);
AdminLog(string);
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Nema igraca");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Nisi Admin");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): evo errori

C:\Users\Mario Sokic\Desktop\CroSerbia\Samp Server script\gamemodes\MarioGM.pwn(22714) : error 017: undefined symbol "OtherWeapons"
C:\Users\Mario Sokic\Desktop\CroSerbia\Samp Server script\gamemodes\MarioGM.pwn(22714) : error 001: expected token: ";", but found "]"
C:\Users\Mario Sokic\Desktop\CroSerbia\Samp Server script\gamemodes\MarioGM.pwn(22714) : error 029: invalid expression, assumed zero

evo 22714     OtherWeapons[playerid] = weaponid;
by L84S
Dodan prefix [Pomoc]
Poslednja Izmena: Jun 11, 2011, 14:37:29 POSLE PODNE od [LYG] $--L84S--$

Stavi na vrh ovako new OtherWeapons[MAX_PLAYERS][13];
Poslednja Izmena: Jun 11, 2011, 13:18:46 POSLE PODNE od [LYG] $--L84S--$

Uradio sam to onda je doslo error za liniju 22717 onda sam opet iso to new ..... za to i onda mi izbacilo error za 22719 tj    SpHealth[playerid] = Health; .....

daj errore i liniej na errorima
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √

Za 22716 su ti gore errori.. evo ti za 22717 C:\Users\Mario Sokic\Desktop\CroSerbia\Samp Server script\gamemodes\MarioGM.pwn(22717) : error 001: expected token: ";", but found "]"
C:\Users\Mario Sokic\Desktop\CroSerbia\Samp Server script\gamemodes\MarioGM.pwn(22717) : error 029: invalid expression, assumed zero
C:\Users\Mario Sokic\Desktop\CroSerbia\Samp Server script\gamemodes\MarioGM.pwn(22717) : fatal error 107: too many error messages on one line a linija 22717 je ova    OtherAmmo[playerid] = ammo;


Pa to sam uradio i sad su na 22719 errori neznam sta je to :/

http://solidfiles.com/d/8fbbc/
da se ne mučiš xd
Poslednja Izmena: Jun 11, 2011, 15:08:05 POSLE PODNE od [ЯPF] K4[Я]!K3