03.06.2020, 16:50
Hi I was searching here for a Ban System.
What I found was this: https://sampforum.blast.hk/showthread.php?tid=401701
I used that Code to implement it in my gamemode but now I got those errors:
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : error 017: undefined symbol "SInfo"
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : warning 215: expression has no effect
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : error 001: expected token: ";", but found "]"
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : error 029: invalid expression, assumed zero
I was trying to edit the Line, since Error 001 usually tells me that I am missing a ";" but I can't find any solution.
Code:
What I found was this: https://sampforum.blast.hk/showthread.php?tid=401701
I used that Code to implement it in my gamemode but now I got those errors:
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : error 017: undefined symbol "SInfo"
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : warning 215: expression has no effect
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : error 001: expected token: ";", but found "]"
D:\Rockstar Games\GTA San Andreas\gamemodes\GFSUpdated.pwn(60) : error 029: invalid expression, assumed zero
I was trying to edit the Line, since Error 001 usually tells me that I am missing a ";" but I can't find any solution.
Code:
Quote:
enum PlayerInfo { Banned }; forward LoadUser_data(playerid,name[],value[]); public LoadUser_data(playerid,name[],value[]) { INI_Int("Banned",SInfo[playerid][Banned]); <<<<<<<<<Line 60 return 1; } |