[Pomoc]FS

Započeo S-RP | McEnnedy Keksi :D, Oktobar 07, 2011, 08:05:46 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Jedan FS
Detaljan opis problema: Taj FS mogu koristiti svi igraci, ja dodam da to mogu koristiti samo PD/FVI/SWAT i meni izbacuje error
Dio skripte:
#include <a_samp>
#include <SpikeStrip>

strtok(const string[], &index)
{
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 )
while ((index < length) && (string[index] <= ' '))
{
index++;
}

new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
cmd = strtok(cmdtext, idx);

if (strcmp(cmd,"/postavi",true) == 0)
    [pLeader] == 1 || [pLeader] == 2 || [pLeader] == 3 || [pMember] == 1 || [pMember] == 2 || [pMember] == 3)
{
    new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
        GetPlayerPos(playerid, plocx, plocy, plocz);
        GetPlayerFacingAngle(playerid,ploca);
        CreateStrip(plocx,plocy,plocz,ploca);
    return 1;
}
else if (strcmp(cmd,"/unisti",true) == 0)
{
        DeleteClosestStrip(playerid);
    return 1;
}
else if (strcmp(cmd,"/unistisve",true) == 0)
{
        DeleteAllStrip();
    return 1;
}

return 0;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\filterscripts\SpikeStrip.pwn(6) : error 017: undefined symbol "PlayerInfo"
E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\filterscripts\SpikeStrip.pwn(6) : error 017: undefined symbol "playerid"
E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\filterscripts\SpikeStrip.pwn(6) : error 029: invalid expression, assumed zero
E:\Silvio\Podaci\Server Pordaci - Security RolePlay\Podaci\Game Mod\Exractan Mod\Test Server\RedLine\filterscripts\SpikeStrip.pwn(6) : 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.

To je ovaj red na kojem izbijaju errori
   if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 )

Citat: [CroCity]BURNâ,,¢ poslato Oktobar 07, 2011, 08:28:52 PRE PODNE
Tu FS moras prebacit u svoj mod jer u njoj nema pInfo
Oke, ja samo neznam i koji dio moda