SA-MP Forums Archive
dini questions - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: dini questions (/showthread.php?tid=93829)



dini questions - ilikepie2221 - 27.08.2009

pawn Код:
new string2 = dini_Int("DMVInfo.ini", NameString); // line 89
if(strcmp(string2, "1", true) == 0) // line 90
{
    // Code
}
Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(90) : error 035: argument type mismatch (argument 1)
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(89) : warning 204: symbol is assigned a value that is never used: "string2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Any ideas? Also, is there a way to check whenever a player logs in, if they have a key in a certain file for themself? Like when a new player connects, the script checks if there's a key in that player's name, and if there isn't, automatically makes the key. Thanks.


Re: dini questions - HuRRiCaNe - 27.08.2009

"DMVInfo.ini", NameString)

why NameString?
this shouldnt be there


Re: dini questions - ilikepie2221 - 27.08.2009

Quote:
Originally Posted by BiG_Sm0k3
"DMVInfo.ini", NameString)

why NameString?
this shouldnt be there
Before that, it's

pawn Код:
new NameString[MAX_PLAYER_NAME];
GetPlayerName(playerid,NameString,sizeof(NameString);



Re: dini questions - HuRRiCaNe - 27.08.2009

so instead of DMVInfo.ini should be %s.ini


Re: dini questions - ilikepie2221 - 27.08.2009

Uh, why?


Re: dini questions - ilikepie2221 - 27.08.2009

12 hr bump


Re: dini questions - dice7 - 27.08.2009

dini_Int get an integer, not a string
http://forum.sa-mp.com/index.php?topic=71935.0


Re: dini questions - ilikepie2221 - 27.08.2009

Ok, that problem's fixed, but how about this?

pawn Код:
new NameString2[MAX_PLAYER_NAME];
GetPlayerName(id, NameString2, sizeof(NameString2));
format(uninvited,sizeof(uninvited), "%d uninvited", NameString2);
SendClientMessage(playerid, COLOR_CYAN, uninvited);
gDMVPlayerInfo[id][PLAYER_IN_DMV] = 0;
dini_IntSet("DMVInfo.ini",Namestring2,0); // 485
Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(485) : error 017: undefined symbol "Namestring2"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Any help?



Re: dini questions - Jefff - 27.08.2009

Namestring2 xD


Re: dini questions - ilikepie2221 - 27.08.2009

Quote:
Originally Posted by Jefff
Namestring2 xD
Oh shiet, I lol'd. Thanks, . Such a stupid mistake, oh well.