[HELP]dini_Get Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP]dini_Get Problem (
/showthread.php?tid=389282)
[HELP]dini_Get Problem -
FeuoZz - 01.11.2012
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!!
Re: [HELP]dini_Get Problem - rjjj - 01.11.2012
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

.
Re: [HELP]dini_Get Problem -
FeuoZz - 01.11.2012
no error but its not work..