SA-MP Forums Archive
Help with 5 script errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Help with 5 script errors (/showthread.php?tid=451328)



Help with 5 script errors - thomaswilliams - 16.07.2013

Ok well i compiled my script earlier when i changed something and i got these errors

C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6085) : error 001: expected token: "-identifier-", but found "["
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6086) : error 029: invalid expression, assumed zero
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6086) : error 035: argument type mismatch (argument 1)
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6086) : error 020: invalid symbol name ""
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6086) : fatal error 107: too many error messages on one line

this is the part of the script the errors are from

[/quote]ExecuteHackerAction( playerid, weaponid )
{
if(!gPlayerLogged{playerid}) { return 1; }
if(PlayerInfo[playerid][pTut] == 0) { return 1; }
if(playerTabbed[playerid] == 1) { return 1; }
if(GetPVarInt(playerid, "IsInArena") >= 0) { return 1; }

new String[128], WeaponName[128];
format(String, sizeof( String ), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), playerid, WeaponName);
ABroadCast( COLOR_YELLOW, String, 2 );
format(String, sizeof(String), "%s (ID %d) may possibly be weapon hacking (%s)", GetPlayerNameEx(playerid), playerid, WeaponName);
Log("logs/hack.log", String);

return 1;
}

Please help me


Re: Help with 5 script errors - NewerthRoleplay - 16.07.2013

Firstly, you should post this in the Scripting Help forum, Secondly you should format it using: "[pawn]" tags.

-Connor


Re: Help with 5 script errors - Dragonsaurus - 16.07.2013

Second, this is the code:
pawn Код:
ExecuteHackerAction( playerid, weaponid )
{
if(!gPlayerLogged(playerid)) return 1;
if(PlayerInfo[playerid][pTut] == 0)  return 1;
if(playerTabbed[playerid] == 1)  return 1;
if(GetPVarInt(playerid, "IsInArena") >= 0) return 1;
new String[128], WeaponName[128];
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), playerid, WeaponName);
ABroadCast(COLOR_YELLOW, String, 2);
format(String, sizeof(String), "%s (ID %d) may possibly be weapon hacking (%s)", GetPlayerNameEx(playerid), playerid, WeaponName);
Log("logs/hack.log", String);
return 1;
}



Re: Help with 5 script errors - thomaswilliams - 16.07.2013

Ok how do i do it?, Use [pawn] tags


Re: Help with 5 script errors - Dragonsaurus - 16.07.2013

PHP код:
[pawn]Blablabla...[/pawn



Re: Help with 5 script errors - thomaswilliams - 16.07.2013

still getting these errors

pawn Код:
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6080) : error 012: invalid function call, not a valid address
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6080) : error 001: expected token: ";", but found ")"
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6080) : error 029: invalid expression, assumed zero
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6080) : fatal error 107: too many error messages on one line



Re: Help with 5 script errors - Dragonsaurus - 16.07.2013

Line 6080?


Re: Help with 5 script errors - thomaswilliams - 16.07.2013

pawn Код:
if(!gPlayerLogged(playerid)) return 1;



Re: Help with 5 script errors - Dragonsaurus - 16.07.2013

Then try
pawn Код:
if(!gPlayerLogged[playerid]) return 1;



Re: Help with 5 script errors - thomaswilliams - 16.07.2013

still these
pawn Код:
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6084) : error 001: expected token: "-identifier-", but found "["
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6085) : error 029: invalid expression, assumed zero
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6085) : error 035: argument type mismatch (argument 1)
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6085) : error 020: invalid symbol name ""
C:\Users\Tonto\Desktop\Our Server\gamemodes\NLRP.pwn(6085) : fatal error 107: too many error messages on one line
in these lines
pawn Код:
new String[128], WeaponName[128];
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) may possibly be weapon hacking (%s).", GetPlayerNameEx(playerid), playerid, WeaponName);