Need help with print.
#1

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)