Clan tag error please help "-string end-", but found "-identifier-"
#1

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
Reply
#2

Show us how you defined pClan
Reply
#3

Quote:
Originally Posted by Ghazal
View Post
Show us how you defined pClan
Code:
#define pClan "WOF"
Thats how i defined it!
Reply
#4

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,
Reply
#5

Quote:
Originally Posted by FuNkYTheGreat
View Post
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)
Reply
#6

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] = ;

ClanInfo[playerid][pClan] = 
Try these new codes,
Reply
#7

Thanks it worked
Repped. !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)