[HELP]dini_Get Problem
#1

Im working on CarSystem.
i have problem with dini_Get:

Код:
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
        GetPlayerName(playerid, name, sizeof(name));
		
		dini_Create("carcheck.txt");
		dini_Set("carcheck.txt" , "Playername" ,name)
		
		if(name != dini_Get("carcheck.txt", "Playername"))
	    {
			RemovePlayerFromVehicle(playerid);
			SendClientMessage(playerid,yellow,"GamexCarSystem: {FFFFFF}You not the owner");
	    }
		else
		{
			SendClientMessage(playerid,yellow,"GamexCarSystem: {FFFFFF}You The owner);
		}
and it give me
Код:
error 033: array must be indexed (variable "name")
Please Help me!!
Reply
#2

Replace this :


pawn Код:
if(name != dini_Get("carcheck.txt", "Playername"))

With:


pawn Код:
if(strcmp(name, dini_Get("carcheck.txt", "Playername")))


I hope that I have helped .
Reply
#3

no error but its not work..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)