sscanf prob
#1

-.- just finished setscore from scratch that i made, if you want to have it take it
but help me im getting this problem
Код:
dcmd_setscore(playerid,params[])
{
	new string[128],score,id, pName[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
 	if(PInfo[playerid][Level] < 3) return SendClientMessage(playerid, red, "ERROR: You must be level 3");
	if(sscanf(params,"ui[128]",id,score)) return SendClientMessage(playerid, ORANGE, "USAGE:/setscore[playerid][score]");
	if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000AA, "Invalid player id");
	
	GetPlayerName(playerid, pName, sizeof(pName));
	GetPlayerName(id, pName2, sizeof(pName2));
	format(string, sizeof(string), "%s has changed your score to %i", pName, score);
	SendClientMessage(id, ORANGE, string);
	format(string, sizeof(string), "You have changed '%s' score to %i",pName2, score);
	SendClientMessage(playerid, ORANGE, string);
	SetPlayerScore(id, score);
	return 1;
}
no errors no warnings, but yes warnings on the console -.-

why?
Reply


Messages In This Thread
sscanf prob - by dark_clown - 27.10.2010, 13:25
Re: sscanf prob - by armyoftwo - 27.10.2010, 13:29
Re: sscanf prob - by Cameltoe - 27.10.2010, 13:34

Forum Jump:


Users browsing this thread: 1 Guest(s)