i cant find way how to fix it.
#1

hey so i making race system.

Код:
here command: i use RacePrice but i need what RacePrice to show in label
}
CMD:dirtyrace(playerid, params[])
{
    new id, msgkike[500], RacePrice;

	if(sscanf(params, "udd", id, RacePrice)) return SendClientMessage(playerid, RED, "/dirtyrace nick/id money for race");
	
	if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "No players");
	
    format(msgkike,sizeof(msgkike),"%s whana race, press YES", GetPlayerNameEx(playerid));
	ShowPlayerDialog(playerid,3636,DIALOG_STYLE_MSGBOX,"RACE",msgkike,"YES","NO");
	
	return 1;

			format(stringas,sizeof(stringas),"%d", RacePrice);
			RACE3D = Create3DTextLabel(stringas, WHITE, -227.2630,207.8925,10.7182,10,0,10);
Reply
#2

It looks like you have an extra "d" in your sscanf line, try put the virtual world param to -1, and have you declared "stringas" as a string?
Reply
#3


so i geting his..
Reply
#4

Код:
if(sscanf(params, "ud", id, RacePrice)) return SendClientMessage(playerid, RED, "/dirtyrace nick/id money for race");
You have 3 format specifiers added and only 2 parameters, that's why its giving the warning.
Reply
#5

okey, thanks know, how make if player accept to race, so teleport car in place one player car left other player car in right
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)