SA-MP Forums Archive
Need help with print. - 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: Need help with print. (/showthread.php?tid=525722)



Need help with print. - XakepSDK - 13.07.2014

Hi. I have trouble.
Код:
else
{
	SetPVarInt(playerid, "MaxLoginTry", GetPVarInt(playerid, "MaxLoginTry") + 1);
	ShowPlayerDialog(playerid, DIALOG_LOGIN, DSP, "Auth", "Write pass:", "enter", "");
	new pvarval = GetPVarInt(playerid, "MaxLoginTry");
	print(pvarval);
}
I can't compile this. My error:
Код:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

D:\Server-SAMP\gamemodes\new.pwn(308) : error 035: argument type mismatch (argument 1)
D:\Server-SAMP\gamemodes\new.pwn(307) : warning 204: symbol is assigned a value that is never used: "pvarval"
1 Error.

Compilation Time: 2,40 sec



Re: Need help with print. - greentarch - 13.07.2014

You can't print an integer with print, but you can with printf
pawn Код:
printf("PVar Value: %d", pvarval);