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
#include
strtok(const string[], &index)
{
if(PlayerInfo == 1 || PlayerInfo == 1 || PlayerInfo == 2 || PlayerInfo == 2 || PlayerInfo == 3 || PlayerInfo == 3 )
while ((index < length) && (string <= ' '))
{
index++;
}
new offset = index;
new result;
while ((index < length) && (string > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string;
index++;
}
result[index - offset] = EOS;
return result;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd;
new idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd,"/postavi",true) == 0)
== 1 || == 2 || == 3 || == 1 || == 2 || == 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 == 1 || PlayerInfo == 1 || PlayerInfo == 2 || PlayerInfo == 2 || PlayerInfo == 3 || PlayerInfo == 3 )
