some1 know why this cmd wont work ? if i use it , it give's me back the mode how to type like i didn't type right
Код HTML:
CMD:createtlocation( playerid, params[ ] )
{
if( PlayerInfo[playerid][pAdmin] < 5 ) return SendClientMessage(playerid,COLOR_WHITE,"Nu esti autorizat sa folosesti aceasta comanda!");
new Skillu, Nameu[ 32 ], Float:POS[ 3 ];
GetPlayerPos( playerid, POS[ 0 ], POS[ 1 ], POS[ 2 ] );
if( sscanf( params, "p<|>s[32]d", Nameu, Skillu ) ) return SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Sintaxa: {FFFFFF}/createtlocation <Name> <Skill>");
mysql_format( handle, gQuery, sizeof( gQuery), "INSERT INTO `truckerlocations` ( `Name`, `Skill`, `X`, `Y`, `Z`) VALUES ( '%e', '%d', '%f', '%f', '%f' );", Nameu, Skillu, POS[ 0 ], POS[ 1 ], POS[ 2 ] );
mysql_query( handle, gQuery );
LoadTruckLoc( );
SendClientMessage(playerid, COLOR_WHITE, "O noua destinatie a fost adaugata pentru jobul Trucker.");
return 1;
}
as sscanf arguments. p<|> means seperation by |. Try removing it so you are left with