dini questions
#1

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

"DMVInfo.ini", NameString)

why NameString?
this shouldnt be there
Reply
#3

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);
Reply
#4

so instead of DMVInfo.ini should be %s.ini
Reply
#5

Uh, why?
Reply
#6

12 hr bump
Reply
#7

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

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?
Reply
#9

Namestring2 xD
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)