Clan tag error please help "-string end-", but found "-identifier-" -
Rohit12 - 10.08.2017
Hey there, i tried to add this >
https://sampforum.blast.hk/showthread.php?tid=395634 to one of my fs. I got a lot of errors at first and finally solved almost all of them except one thing, i tried but i can't figure it out. So please help me with this. Here are the errors i got after all :-
Code:
error 001: expected token: "-string end-", but found "-identifier-"
error 001: expected token: "-string end-", but found "-identifier-"
error 001: expected token: "-string end-", but found "-identifier-"
I used the same lines as given in that tut. Just added some defines to fix errors thats all.
here are the lines that gave me error :-
if(PlayerInfo[playerid][pClan] >= 1) // In this case the clan they need to be in is 1
PlayerInfo[playerid][pClan] = 1 ;
PlayerInfo[playerid][pClan] = 0 ;
These three lines got the same error :- "-string end-", but found "-identifier-"
Please help
Re: Clan tag error please help "-string end-", but found "-identifier-" -
Ghazal - 10.08.2017
Show us how you defined pClan
Re: Clan tag error please help "-string end-", but found "-identifier-" -
Rohit12 - 10.08.2017
Quote:
Originally Posted by Ghazal
Show us how you defined pClan
|
Code:
#define pClan "WOF"
Thats how i defined it!
Re: Clan tag error please help "-string end-", but found "-identifier-" -
FuNkYTheGreat - 10.08.2017
Code:
enum ClanInfo
{
pClan
};
new PlayerInfo[MAX_PLAYERS][ClanInfo];
and remove that define pclan
try this, and you are just copying the code without knowing it, Your gamemode will contain alots of bugs,
Re: Clan tag error please help "-string end-", but found "-identifier-" -
Rohit12 - 10.08.2017
Quote:
Originally Posted by FuNkYTheGreat
Code:
enum ClanInfo
{
pClan
};
new PlayerInfo[MAX_PLAYERS][ClanInfo];
and remove that define pclan
try this, and you are just copying the code without knowing it, Your gamemode will contain alots of bugs,
|
Done and it fixed that error, but the last two errors are simple i guess but i cant fix it. Help wit this error too :-
Code:
warning 213: tag mismatch
warning 213: tag mismatch
Those two lines are :-
Code:
if(PlayerInfo[playerid][pAdmin] >= 3)
if(PlayerInfo[playerid][pAdmin] >= 3)
Re: Clan tag error please help "-string end-", but found "-identifier-" -
FuNkYTheGreat - 10.08.2017
PHP Code:
enum CINFO
{
pClan
};
new ClanInfo[MAX_PLAYERS][CINFO];
PHP Code:
if(ClanInfo[playerid][pClan] >= 1) // In this case the clan they need to be in is 1
ClanInfo[playerid][pClan] = 1 ;
ClanInfo[playerid][pClan] = 0 ;
Try these new codes,
Re: Clan tag error please help "-string end-", but found "-identifier-" -
Rohit12 - 10.08.2017
Thanks it worked
Repped. !