i cant find way how to fix it. - 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: i cant find way how to fix it. (
/showthread.php?tid=586867)
i cant find way how to fix it. -
Karolukas123 - 25.08.2015
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);
Re: i cant find way how to fix it. -
CadSives - 25.08.2015
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?
Re: i cant find way how to fix it. -
Karolukas123 - 25.08.2015

so i geting his..
Re: i cant find way how to fix it. -
Sjn - 25.08.2015
Код:
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.
Re: i cant find way how to fix it. -
Karolukas123 - 25.08.2015
okey, thanks know, how make if player accept to race, so teleport car in place one player car left other player car in right