SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 05/05/2012, 06:43 PM   #1
AlTy
Big Clucker
 
Join Date: Oct 2011
Posts: 56
Reputation: 5
Default Hmm help needed

Any ideas why this wont work?

pawn Code:
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
(line 1048)INI_WriteInt(File,"IP",plrIP);

I get this error:
Code:
D:\oProject\gamemodes\LSTDM.pwn(1048) : error 035: argument type mismatch (argument 3)
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Thanks in advance!
AlTy is offline   Reply With Quote
Old 05/05/2012, 06:49 PM   #2
JaTochNietDan
High-roller
 
JaTochNietDan's Avatar
 
Join Date: Apr 2007
Location: Republic of Ireland
Posts: 2,502
Reputation: 363
Default Re: Hmm help needed

INI_WriteInt is for writing integer values (WriteInteger), you are trying to write a string therefore you need to use the appropriate function for that, which I believe is INI_WriteString.
__________________
Releases:
[Includes]: [jBan] | [jBanLite]
[Plugins]: [FileManager] | [Execute]
[Applications]: [Remote Administrator *NEW] | [Script King] | [RCON GUI]
JaTochNietDan is offline   Reply With Quote
Old 05/05/2012, 07:33 PM   #3
AlTy
Big Clucker
 
Join Date: Oct 2011
Posts: 56
Reputation: 5
Default Re: Hmm help needed

Thanks!
AlTy is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 12:28 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.