ID Problem
#1

Hey. I have problem with sscanf.

Код:
dcmd_aget(playerid, params[])
{
	new id, choose[8];
	sscanf(params, "is", id, choose);
	
	if(!strlen(params)) return SendClientMessage(playerid, 0, "Użycie: /aget [id] [opcja]");
	
	printf("%i guwno", id);
	
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0, "Nie znaleziono gracza.");
It's only a part of code but id gives me 101 when I type 1. Why is it?
Reply
#2

Try: sscanf(params, "us", id, choose);
Reply
#3

Ok. Lock please ^^ Fixed. Setted choose size to 11.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)